]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'ApplyTo'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 31 Oct 2021 16:48:49 +0000 (09:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Nov 2021 22:34:32 +0000 (15:34 -0700)
cmd/smyrna/gui/gui.c
cmd/smyrna/smyrnadefs.h

index b057dd6a04e6589b3d54268d6fe48443f654d414..a227150084cc005db0cf843b3ecf4c957add64cf 100644 (file)
@@ -131,21 +131,6 @@ void load_attributes(void)
                    attr[attrcount].Default = strdup(ss);
                    break;
                case 3:
-                   if (strstr(ss, "ANY_ELEMENT")) {
-                       attr[attrcount].ApplyTo[GVE_GRAPH] = 1;
-                       attr[attrcount].ApplyTo[GVE_CLUSTER] = 1;
-                       attr[attrcount].ApplyTo[GVE_NODE] = 1;
-                       attr[attrcount].ApplyTo[GVE_EDGE] = 1;
-                   } else {
-                       attr[attrcount].ApplyTo[GVE_GRAPH] =
-                           strstr(ss, "GRAPH") ? 1 : 0;
-                       attr[attrcount].ApplyTo[GVE_CLUSTER] =
-                           strstr(ss, "CLUSTER") ? 1 : 0;
-                       attr[attrcount].ApplyTo[GVE_NODE] =
-                           strstr(ss, "NODE") ? 1 : 0;
-                       attr[attrcount].ApplyTo[GVE_EDGE] =
-                           strstr(ss, "EDGE") ? 1 : 0;
-                   }
                    break;
                case 4:
                    if (strstr(ss, "ALL_ENGINES")) {
index 2662af5d2ac2db2d20926b0b672df6036a60ca87..4e9ea31ac98744202853a4b0ff99e82da8b068f9 100644 (file)
@@ -314,7 +314,6 @@ typedef struct
        char Type;
        char *Name;
        char *Default;
-       char ApplyTo[GVE_EDGE + 1];
        char Engine[GVK_FDP + 1];
        char **ComboValues;
        int ComboValuesCount;