aboutsummaryrefslogtreecommitdiff
path: root/callgrind
diff options
context:
space:
mode:
authorflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-08-23 19:42:52 +0000
committerflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-08-23 19:42:52 +0000
commit990406896264d0e7b059024aef476e9bf8252ea5 (patch)
tree1e6f20d1a0c1b373b80464a0e11dc5c18a852ebc /callgrind
parented5b516e96df583ebb66138e7effb9963809d3e8 (diff)
downloadvalgrind-990406896264d0e7b059024aef476e9bf8252ea5.tar.gz
Remove unused functions and prototypes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14342 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'callgrind')
-rw-r--r--callgrind/context.c5
-rw-r--r--callgrind/events.c45
-rw-r--r--callgrind/events.h4
-rw-r--r--callgrind/global.h3
4 files changed, 0 insertions, 57 deletions
diff --git a/callgrind/context.c b/callgrind/context.c
index 342f5c952..853a4d869 100644
--- a/callgrind/context.c
+++ b/callgrind/context.c
@@ -82,11 +82,6 @@ void CLG_(init_cxt_table)()
cxts.table[i] = 0;
}
-cxt_hash* CLG_(get_cxt_hash)()
-{
- return &cxts;
-}
-
/* double size of cxt table */
static void resize_cxt_table(void)
{
diff --git a/callgrind/events.c b/callgrind/events.c
index 5bad95b9d..ab693c718 100644
--- a/callgrind/events.c
+++ b/callgrind/events.c
@@ -162,14 +162,6 @@ EventSet* CLG_(get_event_set2)(Int id1, Int id2)
return eventset_from_mask((1u << id1) | (1u << id2));
}
-EventSet* CLG_(get_event_set3)(Int id1, Int id2, Int id3)
-{
- CLG_ASSERT(id1>=0 && id1<MAX_EVENTGROUP_COUNT);
- CLG_ASSERT(id2>=0 && id2<MAX_EVENTGROUP_COUNT);
- CLG_ASSERT(id3>=0 && id3<MAX_EVENTGROUP_COUNT);
- return eventset_from_mask((1u << id1) | (1u << id2) | (1u << id3));
-}
-
EventSet* CLG_(add_event_group)(EventSet* es, Int id)
{
CLG_ASSERT(id>=0 && id<MAX_EVENTGROUP_COUNT);
@@ -192,30 +184,6 @@ EventSet* CLG_(add_event_set)(EventSet* es1, EventSet* es2)
return eventset_from_mask(es1->mask | es2->mask);
}
-Int CLG_(sprint_eventset)(HChar* buf, EventSet* es)
-{
- Int i, j, pos;
- UInt mask;
- EventGroup* eg;
-
-
- CLG_ASSERT(es->size >0);
- pos = 0;
- for(i=0, mask=1; i<MAX_EVENTGROUP_COUNT; i++, mask=mask<<1) {
- if ((es->mask & mask)==0) continue;
- if (eventGroup[i] ==0) continue;
-
- eg = eventGroup[i];
- for(j=0; j<eg->size; j++) {
- if (pos>0) buf[pos++] = ' ';
- pos += VG_(sprintf)(buf + pos, "%s", eg->name[j]);
- }
- }
- buf[pos] = 0;
-
- return pos;
-}
-
/* Get cost array for an event set */
ULong* CLG_(get_eventset_cost)(EventSet* es)
@@ -269,19 +237,6 @@ Bool CLG_(is_zero_cost)(EventSet* es, ULong* cost)
return True;
}
-Bool CLG_(is_equal_cost)(EventSet* es, ULong* c1, ULong* c2)
-{
- Int i;
-
- if (!c1) return CLG_(is_zero_cost)(es, c2);
- if (!c2) return CLG_(is_zero_cost)(es, c1);
-
- for(i=0; i<es->size; i++)
- if (c1[i] != c2[i]) return False;
-
- return True;
-}
-
void CLG_(copy_cost)(EventSet* es, ULong* dst, ULong* src)
{
Int i;
diff --git a/callgrind/events.h b/callgrind/events.h
index e1e8f1839..322d27fdf 100644
--- a/callgrind/events.h
+++ b/callgrind/events.h
@@ -74,12 +74,9 @@ struct _EventSet {
/* Same event set is returned when requesting same event groups */
EventSet* CLG_(get_event_set)(Int id);
EventSet* CLG_(get_event_set2)(Int id1, Int id2);
-EventSet* CLG_(get_event_set3)(Int id1, Int id2, Int id3);
EventSet* CLG_(add_event_group)(EventSet*, Int id);
EventSet* CLG_(add_event_group2)(EventSet*, Int id1, Int id2);
EventSet* CLG_(add_event_set)(EventSet*, EventSet*);
-/* Writes event names into buf. Returns number of characters written */
-Int CLG_(sprint_eventset)(HChar* buf, EventSet*);
/* Operations on costs. A cost pointer of 0 means zero cost.
@@ -93,7 +90,6 @@ void CLG_(init_cost_lz)(EventSet*,ULong**);
/* Set costs of an event set to zero */
void CLG_(zero_cost)(EventSet*,ULong*);
Bool CLG_(is_zero_cost)(EventSet*,ULong*);
-Bool CLG_(is_equal_cost)(EventSet*,ULong*,ULong*);
void CLG_(copy_cost)(EventSet*,ULong* dst, ULong* src);
void CLG_(copy_cost_lz)(EventSet*,ULong** pdst, ULong* src);
void CLG_(add_cost)(EventSet*,ULong* dst, ULong* src);
diff --git a/callgrind/global.h b/callgrind/global.h
index 7d021ba94..69143c01f 100644
--- a/callgrind/global.h
+++ b/callgrind/global.h
@@ -776,7 +776,6 @@ void CLG_(setup_bbcc)(BB* bb) VG_REGPARM(1);
/* from jumps.c */
void CLG_(init_jcc_hash)(jcc_hash*);
void CLG_(copy_current_jcc_hash)(jcc_hash* dst);
-jcc_hash* CLG_(get_current_jcc_hash)(void);
void CLG_(set_current_jcc_hash)(jcc_hash*);
jCC* CLG_(get_jcc)(BBCC* from, UInt, BBCC* to);
@@ -793,11 +792,9 @@ Int CLG_(unwind_call_stack)(Addr sp, Int);
/* from context.c */
void CLG_(init_fn_stack)(fn_stack*);
void CLG_(copy_current_fn_stack)(fn_stack*);
-fn_stack* CLG_(get_current_fn_stack)(void);
void CLG_(set_current_fn_stack)(fn_stack*);
void CLG_(init_cxt_table)(void);
-cxt_hash* CLG_(get_cxt_hash)(void);
Context* CLG_(get_cxt)(fn_node** fn);
void CLG_(push_cxt)(fn_node* fn);