From 6e10b08485741a5c960f32b80f43ab6e9070ea0a Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 26 Apr 2021 18:49:33 -0700 Subject: math: remove unused macro. * arith.c (NOOP): Unused macro removed. This is a leftover from a code generation system that only existed over the weekend of December 10-11, 2011. A file called arith.txr was used to generate arith.c. One case in the minus function required negating the result due to the reversed operands. The code was generated by a template common with plus, but plus didn't need the negation, due to being commutative, so the code generated for plus called the NOOP macro in the same place where minus called mp_neg. Just a few hours after removing arith.txr, I changed the plus code by hand such that the NOOP macro was not called, without removing the macro. Good grief. --- arith.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arith.c b/arith.c index 2bfda382..fc3f80ce 100644 --- a/arith.c +++ b/arith.c @@ -54,7 +54,6 @@ #define max(a, b) ((a) > (b) ? (a) : (b)) #define TAG_PAIR(A, B) ((A) << TAG_SHIFT | (B)) -#define NOOP(A, B) #define CNUM_BIT ((int) sizeof (cnum) * CHAR_BIT) #define ABS(A) ((A) < 0 ? -(A) : (A)) -- cgit v1.2.3