From: Matthew Fernandez Date: Mon, 25 May 2020 18:29:07 +0000 (-0700) Subject: remove unused CLIPBB macro X-Git-Tag: 2.44.1~49^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4adab86cd5084c8df36b6a96d16df07ace410e92;p=graphviz remove unused CLIPBB macro --- diff --git a/lib/common/geom.h b/lib/common/geom.h index 17119ba78..ebcbdc2ba 100644 --- a/lib/common/geom.h +++ b/lib/common/geom.h @@ -50,9 +50,6 @@ typedef struct { pointf LL, UR; } boxf; /* expand box b0 as needed to enclose box b1 */ #define EXPANDBB(b0, b1) ((b0).LL.x = MIN((b0).LL.x, (b1).LL.x), (b0).LL.y = MIN((b0).LL.y, (b1).LL.y), (b0).UR.x = MAX((b0).UR.x, (b1).UR.x), (b0).UR.y = MAX((b0).UR.y, (b1).UR.y)) -/* clip box b0 to fit box b1 */ -#define CLIPBB(b0, b1) ((b0).LL.x = MAX((b0).LL.x, (b1).LL.x), (b0).LL.y = MAX((b0).LL.y, (b1).LL.y), (b0).UR.x = MIN((b0).UR.x, (b1).UR.x), (b0).UR.y = MIN((b0).UR.y, (b1).UR.y)) - #define LEN2(a,b) (SQR(a) + SQR(b)) #define LEN(a,b) (sqrt(LEN2((a),(b))))