From: Matthew Fernandez <matthew.fernandez@gmail.com> Date: Sun, 31 Oct 2021 16:43:07 +0000 (-0700) Subject: smyrna: remove unused 'Edges' X-Git-Tag: 2.50.0~48^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16f8b26958b4d251ec02e0f346dcda76de36d247;p=graphviz smyrna: remove unused 'Edges' --- diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index 8d576eb82..b6eee68a2 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -174,25 +174,6 @@ typedef struct smyrna_view_mode mode; }mouse_action_t; - typedef struct _object_data //has to be attached to every Node, Edge, Graph and cluster - { - Agrec_t h; - int ID; - char *ObjName; - int ObjType; - int Layer; - int Visible; - int Selected; - int NumDataCount; - float *NumData; - int StrDataCount; - char **StrData; - int param; //generic purpose param - int TVRef; //Topview reference - int edgeid; /*for only edges, > 0 multiedges */ - - } element_data; - #define OD_Visible(p) (p.data.Visible) #define OD_Locked(p) (p.data.Locked) #define OD_Highlighted(p) (p.data.Highlighted) @@ -217,49 +198,6 @@ typedef struct cam_t type; // } viewport_camera; - - - typedef struct - { - Agnode_t *Node; - /*original coordinates */ - float x; - float y; - float z; - /*coordinates to draw */ - float distorted_x; - float distorted_y; - float distorted_z; - float zoom_factor; - int in_fish_eye; //boolean value if to apply fisheye - glCompColor Color; - char *Label; - char *Label2; - int degree; - float node_alpha; - int valid; - element_data data; - float size; - xdot* xDot; - } topview_node; - - typedef struct - { - Agedge_t *Edge; //edge itself - float x1; - float y1; - float z1; - float x2; - float y2; - float z2; - float length; - topview_node *Node1; //Tail - topview_node *Node2; //Head - glCompColor Color; - element_data data; - xdot* xDot; - } topview_edge; - typedef struct _graph_data { Agrec_t h; char *GraphFileName; @@ -345,7 +283,6 @@ typedef struct } selection; typedef struct { - topview_edge *Edges; int Nodecount; int Edgecount; struct {