From f9a1df14235204e0407a64aaf4da51c244c49fa9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 9 Apr 2022 10:47:22 -0700 Subject: [PATCH] gvmap: remove unused 'bg_color' --- cmd/gvmap/gvmap.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/cmd/gvmap/gvmap.c b/cmd/gvmap/gvmap.c index 57e656b7a..33dd80f72 100644 --- a/cmd/gvmap/gvmap.c +++ b/cmd/gvmap/gvmap.c @@ -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; -- 2.40.0