From: Matthew Fernandez Date: Mon, 21 Mar 2022 14:33:28 +0000 (-0700) Subject: smyrna: remove unused 'gvpr_select' X-Git-Tag: 4.0.0~161^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=656a15f855a31acc6eeb162284b89ad3367253b9;p=graphviz smyrna: remove unused 'gvpr_select' The last use of this was removed in 7e1f01ad52915498a252dd213f85daf5a058aa5d. This causes compiler warnings resulting in build failure when enabling this in the CMake build system. Gitlab: related to #1836 --- diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 71164d892..3e933d5bf 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -682,35 +682,3 @@ void showAttrsWidget(topview * t) set_header_text(); filter_attributes("", view->Topview); } - -static void gvpr_select(char *attr, char *regex_str, int objType) -{ - - char *bf2; - int i, j, argc; - char **argv; - - agxbuf sf; - agxbinit(&sf, 0, NULL); - - if (objType == AGNODE) - agxbprint(&sf, "N[%s==\"%s\"]{selected = \"1\"}", attr, regex_str); - else if (objType == AGEDGE) - agxbprint(&sf, "E[%s==\"%s\"]{selected = \"1\"}", attr, regex_str); - - bf2 = agxbdisown(&sf); - - argc = 1; - if (*bf2 != '\0') - argc++; - argv = N_NEW(argc + 1, char *); - j = 0; - argv[j++] = "smyrna"; - argv[j++] = bf2; - - run_gvpr(view->g[view->activeGraph], j, argv); - for (i = 1; i < argc; i++) - free(argv[i]); - free(argv); - set_header_text(); -}