From 477eb270b9c338f7d9743595f8980fa81cdb083d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 8 May 2010 23:21:48 -0600 Subject: Clean up some unused variables. --- libdimension/gl.c | 1 - libdimension/png.c | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libdimension/gl.c b/libdimension/gl.c index d07465f..bd3ef7c 100644 --- a/libdimension/gl.c +++ b/libdimension/gl.c @@ -55,7 +55,6 @@ dmnsn_gl_optimize_canvas(dmnsn_canvas *canvas) int dmnsn_gl_write_canvas(const dmnsn_canvas *canvas) { - dmnsn_canvas_optimizer optimizer; GLushort *pixels; /* Array of 16-bit ints in RGBA order */ GLushort *pixel; dmnsn_sRGB sRGB; diff --git a/libdimension/png.c b/libdimension/png.c index 177293c..0a06e4a 100644 --- a/libdimension/png.c +++ b/libdimension/png.c @@ -36,8 +36,6 @@ static void dmnsn_png_optimizer_fn(dmnsn_canvas *canvas, int dmnsn_png_optimize_canvas(dmnsn_canvas *canvas) { - dmnsn_canvas_optimizer optimizer; - /* Check if we've already optimized this canvas */ DMNSN_ARRAY_FOREACH (dmnsn_canvas_optimizer *, i, canvas->optimizers) { if (i->optimizer_fn == &dmnsn_png_optimizer_fn) { @@ -45,6 +43,7 @@ dmnsn_png_optimize_canvas(dmnsn_canvas *canvas) } } + dmnsn_canvas_optimizer optimizer; optimizer.optimizer_fn = &dmnsn_png_optimizer_fn; optimizer.free_fn = &free; @@ -225,7 +224,6 @@ static int dmnsn_png_write_canvas_impl(dmnsn_progress *progress, const dmnsn_canvas *canvas, FILE *file) { - dmnsn_canvas_optimizer optimizer; png_structp png_ptr; png_infop info_ptr; png_uint_32 width, height; -- cgit v1.2.3