]> granicus.if.org Git - graphviz/commitdiff
cmd/smyrna: remove unused return value from 'close_graph'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:22:34 +0000 (11:22 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:22:34 +0000 (11:22 -0700)
cmd/smyrna/viewport.c
cmd/smyrna/viewport.h

index e006b0b1f16a28f6639812196b4ac4b18b011957..960b4425ea33153636f10ffd58a35576425f05a4 100644 (file)
@@ -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)
index 11a96c9b90e995fbdd693c90698b0e6043b7e02c..3131561721d67610fcac00c2ece863f60a909a09 100644 (file)
@@ -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);