]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'respond' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Sep 2021 23:59:48 +0000 (16:59 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 28 Sep 2021 02:17:05 +0000 (19:17 -0700)
cmd/smyrna/gui/gui.c
cmd/smyrna/smyrnadefs.h
cmd/smyrna/viewport.c

index 657a2d0a27bb43227b94f82ecb187df08550c08f..19ce290d2b1c5b04188b4d4088fcb499b0bb3c95 100644 (file)
@@ -314,7 +314,7 @@ void show_gui_warning(char *str)
                                                      GTK_MESSAGE_WARNING,
                                                      GTK_BUTTONS_OK, "%s", str);
 
-    respond = gtk_dialog_run((GtkDialog *) Dlg);
+    gtk_dialog_run((GtkDialog *) Dlg);
     gtk_object_destroy((GtkObject *) Dlg);
 }
 
index 5a3b048aa11532c786c7d9e26be2e75a79b365c0..6f01f71d69add414bdb0c223d02c8e90a189a854 100644 (file)
@@ -719,7 +719,6 @@ typedef struct
 
     extern ViewInfo *view;
     extern GtkMessageDialog *Dlg;
-    extern int respond;
     extern char *smyrnaPath(char *suffix);
     extern char *smyrnaGlade;
 
index 56dcc31c03285daca02725e1fcf645ec49a6fd37..9d806a16934fb3ffdb08c43c89a5f7ac127e0172 100644 (file)
@@ -37,7 +37,6 @@ static colorschemaset *create_color_theme(int themeid);
 ViewInfo *view;
 /* these two global variables should be wrapped in something else */
 GtkMessageDialog *Dlg;
-int respond;
 
 static void clear_viewport(ViewInfo * view)
 {