From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Thu, 14 Oct 2021 02:53:28 +0000 (-0700)
Subject: smyrna: remove unused 'attr_file' field
X-Git-Tag: 2.49.3~4^2~6
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=167079c568910d28aadb9dd1afe0a409d82f0acf;p=graphviz

smyrna: remove unused 'attr_file' field
---

diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h
index 248a0092b..56c9f5f8f 100644
--- a/cmd/smyrna/smyrnadefs.h
+++ b/cmd/smyrna/smyrnadefs.h
@@ -646,7 +646,6 @@ typedef struct
 	char *glade_file;
 	char* temp;
 	char *template_file;
-	char *attr_file;
 	GtkComboBox *graphComboBox;	/*pointer to graph combo box at top right */
 	ArcBall_t *arcball;
 	keymap_t keymap;
diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c
index 7b57845bf..3fe1b8ef1 100644
--- a/cmd/smyrna/viewport.c
+++ b/cmd/smyrna/viewport.c
@@ -256,12 +256,10 @@ static void get_data_dir(void)
     if (view->template_file) {
 	free(view->template_file);
 	free(view->glade_file);
-	free(view->attr_file);
     }
 
     view->template_file = strdup(smyrnaPath("template.dot"));
     view->glade_file = strdup(smyrnaPath("smyrna.glade"));
-    view->attr_file = strdup(smyrnaPath("attrs.txt"));
 }
 
 void init_viewport(ViewInfo * view)