From 046c00486200367b040c5addc9fc65849a0212c5 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 21 Apr 2006 20:51:58 +0000 Subject: [PATCH] * Got rid of cv->scratch_line. It's unused, too. --- cucul/cucul.c | 6 ------ cucul/cucul_internals.h | 1 - 2 files changed, 7 deletions(-) diff --git a/cucul/cucul.c b/cucul/cucul.c index 2c0312c..67ab114 100644 --- a/cucul/cucul.c +++ b/cucul/cucul.c @@ -171,8 +171,6 @@ void cucul_free_canvas(cucul_canvas_t *cv) { _cucul_end_dither(); - free(cv->scratch_line); - free(cv->chars); free(cv->attr); @@ -273,9 +271,5 @@ void _cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width, cv->chars = realloc(cv->chars, new_size * sizeof(uint32_t)); cv->attr = realloc(cv->attr, new_size * sizeof(uint32_t)); } - - /* Recompute the scratch line and the empty line */ - if(width != old_width) - cv->scratch_line = realloc(cv->scratch_line, width + 1); } diff --git a/cucul/cucul_internals.h b/cucul/cucul_internals.h index ab74a12..1cf74d8 100644 --- a/cucul/cucul_internals.h +++ b/cucul/cucul_internals.h @@ -32,7 +32,6 @@ struct cucul_canvas uint32_t *chars; uint32_t *attr; - char *scratch_line; uint16_t fgcolor; uint16_t bgcolor;