]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'nodesize'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 21:53:59 +0000 (13:53 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 22:01:30 +0000 (14:01 -0800)
cmd/smyrna/gui/frmobjectui.c
cmd/smyrna/gui/topviewsettings.c
cmd/smyrna/smyrnadefs.h
cmd/smyrna/viewport.c

index 5fa6c5b8d31149f1ee2c38d7157b8a4986f6e824..07cfad62f5a3dd4d74c6626e8ae1b5158b6e8670 100644 (file)
@@ -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)
index d04e08a1c951e1d305e2cd1b1a8e7397c00f7630..2ac2c5acd150b53c1c93b14efa2bcf303511cafc 100644 (file)
@@ -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)
index 809d926ed15b5905967c88eea6a9bf74ef7c643f..4cb9d680878555cfeda5e5584d3cacf283353154 100644 (file)
@@ -138,9 +138,6 @@ typedef struct
        int color;
        int pos;
        int selection;
-       int nodesize;
-
-
     }refresh_filter;
 
 
index 407b21e3fb99c740a73612df47f534a8ef76be58..92ab05cebc84ff3d8594f9980a776aae76341873 100644 (file)
@@ -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();