]> granicus.if.org Git - graphviz/commitdiff
gvmap: remove unused 'bg_color'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 17:47:22 +0000 (10:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 1 May 2022 04:48:16 +0000 (21:48 -0700)
cmd/gvmap/gvmap.c

index 57e656b7a90f943379add347cff7960d7e128bf1..33dd80f720308bd976fe76cd889a720966bc3dc5 100644 (file)
@@ -47,7 +47,6 @@ typedef struct {
     char *color_scheme_str;
     const char *opacity;
     char *plot_label;
-    double *bg_color;
     int improve_contiguity_n;
     int nart;
     bool color_optimize;
@@ -166,7 +165,6 @@ init(int argc, char **argv, params_t* pm)
   pm->color_scheme = COLOR_SCHEME_PASTEL; 
   pm->line_width = 0;
   pm->plot_label = NULL;
-  pm->bg_color = NULL;
   pm->improve_contiguity_n = 0;
   pm->nart = -1;
   pm->color_optimize = true;
@@ -281,16 +279,9 @@ init(int argc, char **argv, params_t* pm)
       else
         pm->maxcluster = v;
       break;
-    case 'g': {
-      gvcolor_t color;
-      if (colorxlate(optarg, &color, RGBA_DOUBLE) == COLOR_OK) {
-        if (!pm->bg_color) pm->bg_color = N_NEW(3,double);
-        pm->bg_color[0] = color.u.RGBA[0];
-        pm->bg_color[1] = color.u.RGBA[1];
-        pm->bg_color[2] = color.u.RGBA[2];
-      }
+    case 'g':
+      // ignored
       break;
-    }
     case 'z': {
       pm->line_color = optarg;
       break;