From c8651fec3beca2177cd98e859719e1a878166ce9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 5 Sep 2020 17:00:26 -0700 Subject: [PATCH] remove call to cairo_image_surface_get_format whose result is unused --- lib/glcomp/glcomptextpng.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/glcomp/glcomptextpng.c b/lib/glcomp/glcomptextpng.c index 1a06317dd..b47f7b5c0 100644 --- a/lib/glcomp/glcomptextpng.c +++ b/lib/glcomp/glcomptextpng.c @@ -19,7 +19,6 @@ unsigned char *glCompLoadPng (char *filename, int *imageWidth, int *imageHeight) { cairo_surface_t *surface; - cairo_format_t format; int w, h; unsigned char *d; surface = NULL; @@ -30,7 +29,6 @@ unsigned char *glCompLoadPng (char *filename, int *imageWidth, int *imageHeight) h = cairo_image_surface_get_height(surface); *imageWidth = w; *imageHeight = h; - format = cairo_image_surface_get_format(surface); d = cairo_image_surface_get_data(surface); return d; } -- 2.40.0