]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'Edges'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 31 Oct 2021 16:43:07 +0000 (09:43 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 6 Nov 2021 22:33:58 +0000 (15:33 -0700)
cmd/smyrna/smyrnadefs.h

index 8d576eb82de7a7a4d3c08ce07999206648cefac6..b6eee68a21bfb86aa801e69180ce87a48164b4cd 100644 (file)
@@ -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 {