From 09dadc23246d308ff3b47e1ac249bc0813c952b4 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 24 Dec 2022 13:53:59 -0800 Subject: [PATCH] smyrna: remove unused 'nodesize' --- cmd/smyrna/gui/frmobjectui.c | 6 ++---- cmd/smyrna/gui/topviewsettings.c | 2 -- cmd/smyrna/smyrnadefs.h | 3 --- cmd/smyrna/viewport.c | 2 -- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 5fa6c5b8d..07cfad62f 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -379,14 +379,12 @@ _BB void on_txtAttr_changed(GtkWidget * widget, gpointer user_data) filter_attributes(gtk_entry_get_text((GtkEntry*)widget), view->Topview); } -static void set_refresh_filters(ViewInfo * v, int type, char *name) +static void set_refresh_filters(ViewInfo * v, char *name) { if (strcasecmp(name, "pos") == 0) v->refresh.pos = 1; if (strcasecmp(name, "color") == 0) v->refresh.color = 1; - if ((strcasecmp(name, "size") == 0) && (type == AGNODE)) - v->refresh.nodesize = 1; if (strcasecmp(name, "selected") == 0) v->refresh.selection = 1; } @@ -445,7 +443,7 @@ static void doApply(void) fprintf(stderr, "on_attrApplyBtn_clicked: unknown object kind %d\n", objKind); - set_refresh_filters(view, objKind, attr_name); + set_refresh_filters(view, attr_name); } _BB void on_attrApplyBtn_clicked(GtkWidget * widget, gpointer user_data) diff --git a/cmd/smyrna/gui/topviewsettings.c b/cmd/smyrna/gui/topviewsettings.c index d04e08a1c..2ac2c5acd 100644 --- a/cmd/smyrna/gui/topviewsettings.c +++ b/cmd/smyrna/gui/topviewsettings.c @@ -25,8 +25,6 @@ void size_change_request(GtkWidget * widget, gpointer user_data) { (void)widget; (void)user_data; - - view->refresh.nodesize=1; } void on_settingsOKBtn_clicked(GtkWidget * widget, gpointer user_data) diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 809d926ed..4cb9d6808 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -138,9 +138,6 @@ typedef struct int color; int pos; int selection; - int nodesize; - - }refresh_filter; diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 407b21e3f..92ab05ceb 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -350,7 +350,6 @@ void init_viewport(ViewInfo * view) view->refresh.color=1; view->refresh.pos=1; view->refresh.selection=1; - view->refresh.nodesize=1; if(view->guiMode!=GUI_FULLSCREEN) view->guiMode=GUI_WINDOWED; @@ -450,7 +449,6 @@ void refreshViewport(void) { Agraph_t *graph = view->g[view->activeGraph]; view->refresh.color=1; - view->refresh.nodesize=1; view->refresh.pos=1; view->refresh.selection=1; load_settings_from_graph(); -- 2.40.0