From 167079c568910d28aadb9dd1afe0a409d82f0acf Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 13 Oct 2021 19:53:28 -0700 Subject: [PATCH] smyrna: remove unused 'attr_file' field --- cmd/smyrna/smyrnadefs.h | 1 - cmd/smyrna/viewport.c | 2 -- 2 files changed, 3 deletions(-) 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) -- 2.40.0