summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-05-08 23:21:48 -0600
committerTavian Barnes <tavianator@gmail.com>2010-05-09 21:49:19 -0600
commit477eb270b9c338f7d9743595f8980fa81cdb083d (patch)
treee1fbe8f69afb164786b837a5aeb9e2eec13bacac /libdimension
parent7a21db5914dd7a5666e603d66ed3948b659ba2fc (diff)
downloaddimension-477eb270b9c338f7d9743595f8980fa81cdb083d.tar.xz
Clean up some unused variables.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/gl.c1
-rw-r--r--libdimension/png.c4
2 files changed, 1 insertions, 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;