From: Matthew Fernandez Date: Mon, 11 Apr 2022 04:46:33 +0000 (-0700) Subject: common: remove unused 'flip_rec_box' X-Git-Tag: 4.0.0~110^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d393a14297755902cb35582a79349c6f0926e06;p=graphviz common: remove unused 'flip_rec_box' The last use of this was removed in 572d585bc69479347cb19f6f9a47f87f7e958a46. --- diff --git a/lib/common/geom.c b/lib/common/geom.c index 4bcf3a47a..79bc479d2 100644 --- a/lib/common/geom.c +++ b/lib/common/geom.c @@ -295,22 +295,6 @@ pointf ccwrotatepf(pointf p, int ccwrot) return p; } -box flip_rec_box(box b, point p) -{ - box r; - /* flip box */ - r.UR.x = b.UR.y; - r.UR.y = b.UR.x; - r.LL.x = b.LL.y; - r.LL.y = b.LL.x; - /* move box */ - r.LL.x += p.x; - r.LL.y += p.y; - r.UR.x += p.x; - r.UR.y += p.y; - return r; -} - boxf flip_rec_boxf(boxf b, pointf p) { boxf r; diff --git a/lib/common/geomprocs.h b/lib/common/geomprocs.h index 075036f02..58730471d 100644 --- a/lib/common/geomprocs.h +++ b/lib/common/geomprocs.h @@ -32,7 +32,6 @@ extern "C" { #define GEOMPROCS_API /* nothing */ #endif -GEOMPROCS_API box flip_rec_box(box b, point p); GEOMPROCS_API boxf flip_rec_boxf(boxf b, pointf p); GEOMPROCS_API double ptToLine2 (pointf l1, pointf l2, pointf p);