From d5171bf249cd17d7a9e2a8c0396f6f0eb404d28e Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 18 Jan 2006 11:00:35 +0000 Subject: [PATCH] [project @ 2006-01-18 11:00:35 by simonmar] Remove dead code --- ghc/rts/ProfHeap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ghc/rts/ProfHeap.c b/ghc/rts/ProfHeap.c index 362bafe..8c088b7 100644 --- 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; - nat next_offset = 0; - nat written; // 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; - } else { - next_offset += written; } } fprintf(fp, "%s", buf); -- 1.7.10.4