From 5b10de8a4dce9843e1d49a78e415bfcd8aa4ebb5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 13 Sep 2021 17:17:07 -0700 Subject: [PATCH] smyrna: remove unused 'setGdkColor' --- cmd/smyrna/viewport.c | 14 -------------- cmd/smyrna/viewport.h | 1 - 2 files changed, 15 deletions(-) diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 68d57331f..e5b042a21 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -655,20 +655,6 @@ int save_as_graph(void) return 0; } -int setGdkColor(GdkColor * c, char *color) -{ - gvcolor_t cl; - if (color != '\0') { - colorxlate(color, &cl, RGBA_DOUBLE); - c->red = (int) (cl.u.RGBA[0] * 65535.0); - c->green = (int) (cl.u.RGBA[1] * 65535.0); - c->blue = (int) (cl.u.RGBA[2] * 65535.0); - return 1; - } else - return 0; - -} - void glexpose(void) { expose_event(view->drawing_area, NULL, NULL); diff --git a/cmd/smyrna/viewport.h b/cmd/smyrna/viewport.h index 91852fe4d..77bf488d9 100644 --- a/cmd/smyrna/viewport.h +++ b/cmd/smyrna/viewport.h @@ -41,7 +41,6 @@ extern "C" { /* helper functions */ - extern int setGdkColor(GdkColor * c, char *color); extern char *get_attribute_value(char *attr, ViewInfo * view, Agraph_t * g); -- 2.40.0