]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'dfltViewType'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 21 Oct 2021 01:47:07 +0000 (18:47 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 22 Oct 2021 00:04:21 +0000 (17:04 -0700)
cmd/smyrna/smyrnadefs.h
cmd/smyrna/topviewfuncs.c
cmd/smyrna/viewport.c

index 918dd7766785702f3a30999cf33bdaeb91d713ba..1dba601832037b7690a06b12463b5f3feed21798 100644 (file)
@@ -154,14 +154,6 @@ typedef struct
        colorschema *s;
     } colorschemaset;
 
-    typedef enum {
-       VT_NONE,
-       VT_XDOT,
-       VT_TOPVIEW,
-       VT_TOPFISH,
-    } viewtype_t;
-
-
     typedef enum {
        GVE_NONE = -1,
        GVE_GRAPH,
@@ -632,7 +624,6 @@ typedef struct
        int labelshownodes;
        int labelshowedges;
 
-       viewtype_t dfltViewType;
        glCompSet *widgets;     //for novice user open gl menu
        char *initFileName;     //file name from command line
        int initFile;
index 2bbc649f67259a9c2c3436b63bcca3c18559443b..854062ba32d4188f466a0cf812a19855a083989f 100644 (file)
@@ -890,10 +890,7 @@ void initSmGraph(Agraph_t * g,topview* rv)
     /*set topologilca fisheye to NULL */
     rv->fisheyeParams.h = '\0';
 
-    if (view->dfltViewType == VT_TOPFISH)
-       rv->fisheyeParams.active = 1;
-    else
-       rv->fisheyeParams.active = 0;
+    rv->fisheyeParams.active = 0;
     rv->cache.node_id=-1;
     rv->cache.selnode_id=-1;
     rv->cache.edge_id=-1;
index 872580ae5490cc39a9a575745d310a221c042218..860fa2cc8b1acc3b7eb6f0b36cb2c406c9f6c4ab 100644 (file)
@@ -400,7 +400,6 @@ void init_viewport(ViewInfo * view)
     view->camera_count = 0;
     view->active_camera = -1;
     set_viewport_settings_from_template(view, view->systemGraphs.def_attrs);
-    view->dfltViewType = VT_NONE;
     view->Topview->Graphdata.GraphFileName = (char *) 0;
     view->Topview->Graphdata.Modified = 0;
     view->colschms = NULL;