From a04b663e4f3d2aa94607cb8375440624cddb95b0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 6 Nov 2021 17:06:49 -0700 Subject: [PATCH] smyrna: remove unused 'visibility' refresh filter field --- cmd/smyrna/gui/frmobjectui.c | 3 --- cmd/smyrna/smyrnadefs.h | 1 - cmd/smyrna/viewport.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index baba72c88..2c6488d5f 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -463,9 +463,6 @@ static void set_refresh_filters(ViewInfo * v, int type, char *name) v->refresh.nodesize = 1; if (strcasecmp(name, "selected") == 0) v->refresh.selection = 1; - if (strcasecmp(name, "visible") == 0) - v->refresh.visibility = 1; - } static void doApply (GtkWidget * widget, int doAll) diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index da4b41d78..b68d0329a 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -156,7 +156,6 @@ typedef struct int color; int pos; int selection; - int visibility; int nodesize; diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index ac9601c48..f23b91477 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -403,7 +403,6 @@ void init_viewport(ViewInfo * view) view->refresh.color=1; view->refresh.pos=1; view->refresh.selection=1; - view->refresh.visibility=1; view->refresh.nodesize=1; view->edgerendertype=0; if(view->guiMode!=GUI_FULLSCREEN) @@ -508,7 +507,6 @@ void refreshViewport(int doClear) view->refresh.nodesize=1; view->refresh.pos=1; view->refresh.selection=1; - view->refresh.visibility=1; load_settings_from_graph(graph); if(view->guiMode!=GUI_FULLSCREEN) -- 2.40.0