From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:37:02 +0000 (-0700) Subject: smyrna doApply: remove unused 'doAll' code path X-Git-Tag: 5.0.1~29^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=353792fe77e7899879be2b3aed1a85fc96d2e6a6;p=graphviz smyrna doApply: remove unused 'doAll' code path --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 46c5bf08c..b3a461099 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -434,7 +434,7 @@ static void set_refresh_filters(ViewInfo * v, int type, char *name) v->refresh.selection = 1; } -static void doApply(int doAll) +static void doApply(void) { char *attr_name; char *value; @@ -476,7 +476,7 @@ static void doApply(int doAll) /*nodes */ else if (objKind == AGNODE) { for (v = agfstnode(g); v; v = agnxtnode(g, v)) { - if (doAll || ND_selected(v)) + if (ND_selected(v)) agxset(v, sym, value); } } @@ -484,7 +484,7 @@ static void doApply(int doAll) else if (objKind == AGEDGE) { for (v = agfstnode(g); v; v = agnxtnode(g, v)) { for (e = agfstout(g, v); e; e = agnxtout(g, e)) { - if (doAll || ED_selected(e)) + if (ED_selected(e)) agxset(e, sym, value); } } @@ -500,7 +500,7 @@ _BB void on_attrApplyBtn_clicked(GtkWidget * widget, gpointer user_data) (void)widget; (void)user_data; - doApply(0); + doApply(); } /* This is the action attached to the publish button on the attributes