From e2cc1c49df9235a1afaffbf02deb06166e548d94 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 20 Oct 2021 18:49:31 -0700 Subject: [PATCH] smyrna: remove unused 'SignalBlock' --- cmd/smyrna/gui/menucallbacks.c | 4 ---- cmd/smyrna/smyrnadefs.h | 3 --- cmd/smyrna/viewport.c | 1 - 3 files changed, 8 deletions(-) diff --git a/cmd/smyrna/gui/menucallbacks.c b/cmd/smyrna/gui/menucallbacks.c index 03492f9d2..573244e27 100644 --- a/cmd/smyrna/gui/menucallbacks.c +++ b/cmd/smyrna/gui/menucallbacks.c @@ -26,7 +26,6 @@ void mOpenSlot(GtkWidget * widget, gpointer user_data) { GtkWidget *dialog; GtkFileFilter *filter; - int i = 0; filter = gtk_file_filter_new(); gtk_file_filter_add_pattern(filter, "*.gv"); @@ -44,11 +43,8 @@ void mOpenSlot(GtkWidget * widget, gpointer user_data) char *filename; filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - i = view->SignalBlock; - view->SignalBlock = 1; add_graph_to_viewport_from_file(filename); g_free(filename); - view->SignalBlock = i; } gtk_widget_destroy(dialog); diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 1dba60183..e61c2510b 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -596,9 +596,6 @@ typedef struct /*open gl canvas, used to be a globa variable before looks better wrapped in viewinfo */ GtkWidget *drawing_area; - /*some boolean variable for variety hacks used in the software */ - int SignalBlock; - /*Topview data structure, refer topview.h for more info */ topview *Topview; /*timer for animations */ diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 860fa2cc8..abac5f70b 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -367,7 +367,6 @@ void init_viewport(ViewInfo * view) view->fmg.active = 0; view->mouse.down = 0; view->activeGraph = -1; - view->SignalBlock = 0; view->Topview = GNEW(topview); view->Topview->fisheyeParams.fs = 0; view->Topview->xDot=NULL; -- 2.40.0