From: Matthew Fernandez Date: Sat, 5 Jun 2021 02:21:13 +0000 (-0700) Subject: remove unused mkbox X-Git-Tag: 2.47.3~6^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=209b16180508744c24c42f8cdf523a52f654bbfb;p=graphviz remove unused mkbox --- diff --git a/lib/common/geom.c b/lib/common/geom.c index 0e12e40b2..65402a8ac 100644 --- a/lib/common/geom.c +++ b/lib/common/geom.c @@ -16,27 +16,6 @@ #include #include -box mkbox(point p, point q) -{ - box r; - - if (p.x < q.x) { - r.LL.x = p.x; - r.UR.x = q.x; - } else { - r.LL.x = q.x; - r.UR.x = p.x; - } - if (p.y < q.y) { - r.LL.y = p.y; - r.UR.y = q.y; - } else { - r.LL.y = q.y; - r.UR.y = p.y; - } - return r; -} - boxf mkboxf(pointf p, pointf q) { boxf r; diff --git a/lib/common/geomprocs.h b/lib/common/geomprocs.h index 8b368ddb2..b05b8620b 100644 --- a/lib/common/geomprocs.h +++ b/lib/common/geomprocs.h @@ -31,7 +31,6 @@ extern "C" { #endif #endif -extern box mkbox(point p, point q); extern boxf mkboxf(pointf p, pointf q); extern box flip_rec_box(box b, point p); diff --git a/lib/gvc/gvc.def b/lib/gvc/gvc.def index e4bf34539..7b89d780e 100644 --- a/lib/gvc/gvc.def +++ b/lib/gvc/gvc.def @@ -188,7 +188,6 @@ mapbool maptoken MaxIter MemTest -mkbox mkboxf N_activefillcolor N_activepencolor