]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove 'freeSmGraph' no-op
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 28 Nov 2021 22:15:11 +0000 (14:15 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 00:09:07 +0000 (16:09 -0800)
cmd/smyrna/topviewfuncs.c
cmd/smyrna/topviewfuncs.h
cmd/smyrna/viewport.c

index ae772ef6ebdc9983555e05fb90a0296bc9104811..b4329972e4d5ea099d5f1dd0668debf44cfb74b4 100644 (file)
@@ -921,7 +921,3 @@ void renderSmGraph(topview* t)
     }
 
 }
-
-void freeSmGraph(Agraph_t * g,topview* t)
-{
-}
index e75830b30d6383d497317bd6c419c4be99f6d5c4..73f0c98a75b0ca9685bd99a898cf01c585503476 100644 (file)
@@ -16,6 +16,5 @@ extern void pick_object_xyz(Agraph_t* g,topview* t,GLfloat x,GLfloat y,GLfloat z
 extern void initSmGraph(Agraph_t * g,topview* rv);
 extern void updateSmGraph(Agraph_t * g,topview* t);
 extern void renderSmGraph(topview* t);
-extern void freeSmGraph(Agraph_t * g,topview* t);
 extern void cacheSelectedEdges(Agraph_t * g,topview* t);
 extern void cacheSelectedNodes(Agraph_t * g,topview* t);
index f23b91477e79ccc3f9c5111e6532bc2861369f60..b00f04a9eb6ffb587733f9351303ba124f2fa0dc 100644 (file)
@@ -40,11 +40,6 @@ GtkMessageDialog *Dlg;
 
 static void clear_viewport(ViewInfo * view)
 {
-    /*free topview if there is one */
-    if (view->activeGraph >= 0)
-    {
-       freeSmGraph(view->g[view->activeGraph],view->Topview);
-    }
     if (view->graphCount)
        agclose(view->g[view->activeGraph]);
 }