]> granicus.if.org Git - graphviz/commitdiff
remove commented out code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 22 Nov 2020 05:56:54 +0000 (21:56 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jan 2021 19:24:27 +0000 (11:24 -0800)
lib/fdpgen/dbg.c
lib/fdpgen/fdp.h

index c294a946221707c4ed33c3ca2b4edc41c8ad514a..14a64d9fa25f00ec1cd223e7ac19820822350b24 100644 (file)
@@ -248,24 +248,6 @@ static char *plog = "%!PS-Adobe-2.0\n\n\
 
 static char *elog = "showpage\n";
 
-/*
-static char* arrow = "/doArrow {\n\
-\t/arrowwidth exch def\n\
-\t/arrowlength exch def\n\
-\tgsave\n\
-\t\t3 1 roll\n\
-\t\ttranslate\n\
-\t\t\trotate\n\
-\t\t\tnewpath\n\
-\t\t\tarrowlength arrowwidth 2 div moveto\n\
-\t\t\t0 0 lineto\n\
-\t\t\tarrowlength arrowwidth -2 div lineto\n\
-\t\tclosepath fill\n\
-\t\tstroke\n\
-\tgrestore\n\
-} def\n";
-*/
-
 static double PSWidth = 550.0;
 static double PSHeight = 756.0;
 
@@ -285,13 +267,6 @@ static void pswrite(Agraph_t * g, FILE * fp, int expMode)
 
     fprintf(fp, "%s", plog);
 
-/*
-    if (agisdirected (g) && DoArrow) {
-      do_arrow = 1;
-      fprintf(fp,arrow);
-    }
-    else 
-*/
     do_arrow = 0;
 
     n = agfstnode(g);
index 65c22ed4eefb6b552629ab995b719dc698890736..9d11ecce25726dc02705d37f83c4b87557a97314 100644 (file)
@@ -53,25 +53,6 @@ typedef struct {
 #define GORIG(g)    (GDATA(g)->orig)
 #endif
 
-#if 0
-/* ndata is attached to nodes in real graphs.
- * Real nodes also use "builtin" fields:
- *   pos   - position information
- *   width,height     - node dimensions
- *   xsize,ysize      - node dimensions in points
- */
-typedef struct {
-    node_t *dn;                        /* points to corresponding derived node,
-                                * which may represent the node or its
-                                * containing cluster. */
-    graph_t *parent;           /* smallest containing cluster */
-} ndata;
-
-#define NDATA(n) ((ndata*)(ND_alg(n)))
-#define DNODE(n) (NDATA(n)->dn)
-#define PARENT(n) (NDATA(n)->parent)
-#endif
-
 /* 
  * Real nodes use "builtin" fields:
  *   ND_pos   - position information