diff options
author | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2014-08-23 19:13:48 +0000 |
---|---|---|
committer | florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2014-08-23 19:13:48 +0000 |
commit | ed5b516e96df583ebb66138e7effb9963809d3e8 (patch) | |
tree | 596c6d80bd446e3b1e4aec2571cb728c58a3583e /callgrind | |
parent | 021e6b676376a6654204ebf107876c5145c22222 (diff) | |
download | valgrind-ed5b516e96df583ebb66138e7effb9963809d3e8.tar.gz |
Remove unused function CLG_(sprint_cost).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14341 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'callgrind')
-rw-r--r-- | callgrind/events.c | 27 | ||||
-rw-r--r-- | callgrind/events.h | 2 |
2 files changed, 0 insertions, 29 deletions
diff --git a/callgrind/events.c b/callgrind/events.c index d7338b405..5bad95b9d 100644 --- a/callgrind/events.c +++ b/callgrind/events.c @@ -445,33 +445,6 @@ Bool CLG_(add_diff_cost_lz)(EventSet* es, ULong** pdst, ULong* old, ULong* new_c } -/* Returns number of characters written */ -Int CLG_(sprint_cost)(HChar* buf, EventSet* es, ULong* c) -{ - Int i, pos, skipped = 0; - - if (!c || es->size==0) return 0; - - /* At least one entry */ - pos = VG_(sprintf)(buf, "%llu", c[0]); - for(i=1; i<es->size; i++) { - if (c[i] == 0) { - skipped++; - continue; - } - while(skipped>0) { - buf[pos++] = ' '; - buf[pos++] = '0'; - skipped--; - } - buf[pos++] = ' '; - pos += VG_(sprintf)(buf+pos, "%llu", c[i]); - } - - return pos; -} - - /* Allocate space for an event mapping */ EventMapping* CLG_(get_eventmapping)(EventSet* es) { diff --git a/callgrind/events.h b/callgrind/events.h index fcd025187..e1e8f1839 100644 --- a/callgrind/events.h +++ b/callgrind/events.h @@ -105,8 +105,6 @@ Bool CLG_(add_and_zero_cost2)(EventSet*,ULong* dst,EventSet*,ULong* src); * Returns false if nothing changed */ Bool CLG_(add_diff_cost)(EventSet*,ULong* dst, ULong* old, ULong* new_cost); Bool CLG_(add_diff_cost_lz)(EventSet*,ULong** pdst, ULong* old, ULong* new_cost); -/* Returns number of characters written */ -Int CLG_(sprint_cost)(HChar* buf, EventSet*, ULong*); /* EventMapping: An ordered subset of events from an event set. * This is used to print out part of an EventSet, or in another order. |