]> granicus.if.org Git - graphviz/commitdiff
common: remove unused 'flip_rec_box'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 11 Apr 2022 04:46:33 +0000 (21:46 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 13 Apr 2022 00:02:33 +0000 (17:02 -0700)
The last use of this was removed in 572d585bc69479347cb19f6f9a47f87f7e958a46.

lib/common/geom.c
lib/common/geomprocs.h

index 4bcf3a47aed54f0656e5c69403cb4a57d9c2ec1f..79bc479d2eae264bffa775cdcf2c0e29d7a617c9 100644 (file)
@@ -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;
index 075036f02529f7dd284679389bc456cb1e53f740..58730471d3e6cf12c09fbab426a00a0dae3fedc0 100644 (file)
@@ -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);