projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6065bf1
)
[project @ 2006-01-18 11:00:35 by simonmar]
author
simonmar
<unknown>
Wed, 18 Jan 2006 11:00:35 +0000
(11:00 +0000)
committer
simonmar
<unknown>
Wed, 18 Jan 2006 11:00:35 +0000
(11:00 +0000)
Remove dead code
ghc/rts/ProfHeap.c
patch
|
blob
|
history
diff --git
a/ghc/rts/ProfHeap.c
b/ghc/rts/ProfHeap.c
index
362bafe
..
8c088b7
100644
(file)
--- a/
ghc/rts/ProfHeap.c
+++ b/
ghc/rts/ProfHeap.c
@@
-520,8
+520,6
@@
static void
fprint_ccs(FILE *fp, CostCentreStack *ccs, nat max_length)
{
char buf[max_length+1], *p, *buf_end;
fprint_ccs(FILE *fp, CostCentreStack *ccs, nat max_length)
{
char buf[max_length+1], *p, *buf_end;
- nat next_offset = 0;
- nat written;
// MAIN on its own gets printed as "MAIN", otherwise we ignore MAIN.
if (ccs == CCS_MAIN) {
// MAIN on its own gets printed as "MAIN", otherwise we ignore MAIN.
if (ccs == CCS_MAIN) {
@@
-553,8
+551,6
@@
fprint_ccs(FILE *fp, CostCentreStack *ccs, nat max_length)
if (p >= buf_end) {
sprintf(buf+max_length-4, "...");
break;
if (p >= buf_end) {
sprintf(buf+max_length-4, "...");
break;
- } else {
- next_offset += written;
}
}
fprintf(fp, "%s", buf);
}
}
fprintf(fp, "%s", buf);