From 83d45d49b4ba19b3d2ca97b2f0b3d4ef30b00eb3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 31 May 2020 13:14:19 -0700 Subject: [PATCH] remove some unused macros --- cmd/tools/matrix_market.c | 2 -- lib/common/geom.h | 4 +--- lib/sparse/LinkedList.c | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/cmd/tools/matrix_market.c b/cmd/tools/matrix_market.c index 69d605a95..02f7d5235 100644 --- a/cmd/tools/matrix_market.c +++ b/cmd/tools/matrix_market.c @@ -18,8 +18,6 @@ #include "assert.h" #define MALLOC gmalloc #define REALLOC grealloc -#define FREE free -#define MEMCPY memcpy int mm_get_type(MM_typecode typecode) { diff --git a/lib/common/geom.h b/lib/common/geom.h index ebcbdc2ba..ec4f24e04 100644 --- a/lib/common/geom.h +++ b/lib/common/geom.h @@ -71,12 +71,10 @@ typedef struct { pointf LL, UR; } boxf; #define B2BF(b,bf) (P2PF((b).LL,(bf).LL),P2PF((b).UR,(bf).UR)) #define BF2B(bf,b) (PF2P((bf).LL,(b).LL),PF2P((bf).UR,(b).UR)) -#define APPROXEQ(a,b,tol) (ABS((a) - (b)) < (tol)) #define APPROXEQPT(p,q,tol) (DIST2((p),(q)) < SQR(tol)) -/* some common tolerance values */ +/* common tolerance value */ #define MILLIPOINT .001 -#define MICROPOINT .000001 #ifdef __cplusplus } diff --git a/lib/sparse/LinkedList.c b/lib/sparse/LinkedList.c index 43350b0bb..08a63fccb 100644 --- a/lib/sparse/LinkedList.c +++ b/lib/sparse/LinkedList.c @@ -13,10 +13,7 @@ #include "LinkedList.h" #include "memory.h" -#define MALLOC gmalloc -#define REALLOC grealloc #define FREE free -#define MEMCPY memcpy -- 2.40.0