From 080edf718f2cb0fde28efe27d2461799360ad389 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 31 Oct 2021 09:48:49 -0700 Subject: [PATCH] smyrna: remove unused 'ApplyTo' --- cmd/smyrna/gui/gui.c | 15 --------------- cmd/smyrna/smyrnadefs.h | 1 - 2 files changed, 16 deletions(-) diff --git a/cmd/smyrna/gui/gui.c b/cmd/smyrna/gui/gui.c index b057dd6a0..a22715008 100644 --- a/cmd/smyrna/gui/gui.c +++ b/cmd/smyrna/gui/gui.c @@ -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")) { diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 2662af5d2..4e9ea31ac 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -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; -- 2.40.0