From ed4bf8b65917bfbc47b0f31628c693b4122b5990 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 2 Dec 2021 18:42:35 -0800 Subject: [PATCH] gvpack: remove disabled 'redoBB' --- cmd/tools/gvpack.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index 06f3cd728..30b2629ec 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -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 -- 2.40.0