]> granicus.if.org Git - graphviz/commitdiff
gvpack: remove disabled 'redoBB'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 3 Dec 2021 02:42:35 +0000 (18:42 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 01:21:32 +0000 (17:21 -0800)
cmd/tools/gvpack.c

index 06f3cd728b8bf766a4719082f10a60d5222ac517..30b2629ecefe6a141d97e5bd3669c69cb2f3c089 100644 (file)
@@ -515,28 +515,6 @@ static void cloneGraphAttr(Agraph_t * g, Agraph_t * ng)
     cloneDfltAttrs(g, ng, AGEDGE);
 }
 
-#ifdef UNIMPL
-/* redoBB:
- * If "bb" attribute is valid, translate to reflect graph's
- * new packed position.
- */
-static void redoBB(Agraph_t * g, char *s, Agsym_t * G_bb, point delta)
-{
-    box bb;
-    char buf[100];
-
-    if (sscanf(s, "%d,%d,%d,%d", &bb.LL.x, &bb.LL.y, &bb.UR.x, &bb.UR.y) ==
-       4) {
-       bb.LL.x += delta.x;
-       bb.LL.y += delta.y;
-       bb.UR.x += delta.x;
-       bb.UR.y += delta.y;
-       snprintf(buf, sizeof(buf), "%d,%d,%d,%d", bb.LL.x, bb.LL.y, bb.UR.x, bb.UR.y);
-       agxset(g, G_bb->index, buf);
-    }
-}
-#endif
-
 /* xName:
  * Create a name for an object in the new graph using the
  * dictionary names and the old name. If the old name has not