From: Matthew Fernandez Date: Thu, 21 Oct 2021 01:47:07 +0000 (-0700) Subject: smyrna: remove unused 'dfltViewType' X-Git-Tag: 2.49.3~1^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c981d5c73b04b4e89e14fb33d1ac1f1a6e24754f;p=graphviz smyrna: remove unused 'dfltViewType' --- diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 918dd7766..1dba60183 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -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; diff --git a/cmd/smyrna/topviewfuncs.c b/cmd/smyrna/topviewfuncs.c index 2bbc649f6..854062ba3 100644 --- a/cmd/smyrna/topviewfuncs.c +++ b/cmd/smyrna/topviewfuncs.c @@ -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; diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 872580ae5..860fa2cc8 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -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;