From d57896a8f4afce716433e4ceadcaa2130265c8e9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 28 Nov 2021 14:24:37 -0800 Subject: [PATCH] smyrna close_graph: remove unused 'graphid' parameter --- cmd/smyrna/gltemplate.c | 2 +- cmd/smyrna/glutrender.c | 2 +- cmd/smyrna/gui/menucallbacks.c | 4 ++-- cmd/smyrna/viewport.c | 2 +- cmd/smyrna/viewport.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/smyrna/gltemplate.c b/cmd/smyrna/gltemplate.c index a27861236..59ed9af88 100644 --- a/cmd/smyrna/gltemplate.c +++ b/cmd/smyrna/gltemplate.c @@ -246,7 +246,7 @@ gboolean expose_event(GtkWidget * widget, GdkEventExpose * event, if (view->initFile) { view->initFile = 0; if (view->activeGraph == 0) - close_graph(view, 0); + close_graph(view); add_graph_to_viewport_from_file(view->initFileName); } return TRUE; diff --git a/cmd/smyrna/glutrender.c b/cmd/smyrna/glutrender.c index c9dfd2b1f..300bee3ed 100644 --- a/cmd/smyrna/glutrender.c +++ b/cmd/smyrna/glutrender.c @@ -80,7 +80,7 @@ static void cb_display(void) if (view->initFile) { view->initFile = 0; if (view->activeGraph == 0) - close_graph(view, 0); + close_graph(view); add_graph_to_viewport_from_file(view->initFileName); } diff --git a/cmd/smyrna/gui/menucallbacks.c b/cmd/smyrna/gui/menucallbacks.c index 398660612..fb96b4620 100644 --- a/cmd/smyrna/gui/menucallbacks.c +++ b/cmd/smyrna/gui/menucallbacks.c @@ -72,7 +72,7 @@ void mCloseSlot(GtkWidget * widget, gpointer user_data) (void)user_data; if (view->activeGraph == 0) - close_graph(view, 0); + close_graph(view); } void mOptionsSlot(GtkWidget * widget, gpointer user_data) @@ -86,7 +86,7 @@ void mQuitSlot(GtkWidget * widget, gpointer user_data) (void)widget; (void)user_data; - if (close_graph(view, view->activeGraph)); + if (close_graph(view)); gtk_main_quit(); } diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index b00f04a9e..ca953f578 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -71,7 +71,7 @@ static void *get_glut_font(int ind) } -int close_graph(ViewInfo * view, int graphid) +int close_graph(ViewInfo * view) { if (view->activeGraph < 0) return 1; diff --git a/cmd/smyrna/viewport.h b/cmd/smyrna/viewport.h index 0e8d8f51c..135fb861f 100644 --- a/cmd/smyrna/viewport.h +++ b/cmd/smyrna/viewport.h @@ -22,7 +22,7 @@ void refreshViewport(int doClear); int add_graph_to_viewport_from_file(char *fileName); int add_graph_to_viewport(Agraph_t * graph, char *); - int close_graph(ViewInfo * view, int graphid); + int close_graph(ViewInfo * view); int save_graph(void); int save_graph_with_file_name(Agraph_t * graph, char *fileName); int save_as_graph(void); -- 2.40.0