From 4adab86cd5084c8df36b6a96d16df07ace410e92 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 25 May 2020 11:29:07 -0700 Subject: [PATCH] remove unused CLIPBB macro --- lib/common/geom.h | 3 --- 1 file changed, 3 deletions(-) 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)))) -- 2.40.0