From: Matthew Fernandez Date: Sun, 6 Sep 2020 00:00:26 +0000 (-0700) Subject: remove call to cairo_image_surface_get_format whose result is unused X-Git-Tag: 2.46.0~20^2^2~86^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8651fec3beca2177cd98e859719e1a878166ce9;p=graphviz remove call to cairo_image_surface_get_format whose result is unused --- 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; }