From a5ea62f1c6c7df6e9bcbefbcfdf125b3aca21327 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 27 Mar 2022 11:22:34 -0700 Subject: [PATCH] cmd/smyrna: remove unused return value from 'close_graph' --- cmd/smyrna/viewport.c | 7 ++----- cmd/smyrna/viewport.h | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index e006b0b1f..960b4425e 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -73,13 +73,10 @@ static void *get_glut_font(int ind) } -int close_graph(ViewInfo * view) -{ +void close_graph(ViewInfo *view) { if (view->activeGraph < 0) - return 1; + return; clear_viewport(view); - return 1; - } char *get_attribute_value(char *attr, ViewInfo * view, Agraph_t * g) diff --git a/cmd/smyrna/viewport.h b/cmd/smyrna/viewport.h index 11a96c9b9..313156172 100644 --- a/cmd/smyrna/viewport.h +++ b/cmd/smyrna/viewport.h @@ -22,7 +22,7 @@ void refreshViewport(void); int add_graph_to_viewport_from_file(char *fileName); int add_graph_to_viewport(Agraph_t * graph, char *); - int close_graph(ViewInfo * view); + void 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