]> granicus.if.org Git - graphviz/commitdiff
remove dead stores to orig_key field in Smyrna
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Apr 2021 02:35:16 +0000 (19:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 May 2021 14:47:30 +0000 (07:47 -0700)
This field is never read from. Related to #2050.

cmd/smyrna/viewport.c

index 88d89cf82cd0bebd6cd7bfa9a90f72b04c560d44..465057885ac093bedef656dee40b2fc9de280ab0 100644 (file)
@@ -547,7 +547,6 @@ void refreshViewport(int doClear)
     graphRecord(graph);
     initSmGraph(graph,view->Topview);
 
-    fill_key(view->orig_key, get_md5_key(graph));
     expose_event(view->drawing_area, NULL, NULL);
 }
 
@@ -658,7 +657,6 @@ int save_graph(void)
                                             GraphFileName);
        } else
            return save_as_graph();
-        fill_key(view->orig_key, get_md5_key(view->g[view->activeGraph]));
     }
     return 1;