]> granicus.if.org Git - graphviz/commitdiff
remove call to cairo_image_surface_get_format whose result is unused
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Sep 2020 00:00:26 +0000 (17:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Sep 2020 02:24:16 +0000 (19:24 -0700)
lib/glcomp/glcomptextpng.c

index 1a06317ddd88ce58f301dd0830c78e517c5e5104..b47f7b5c0277d2dbe03c9d727573cb7ee6776682 100644 (file)
@@ -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;
 }