summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-04-26 18:49:33 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-04-26 18:49:33 -0700
commit6e10b08485741a5c960f32b80f43ab6e9070ea0a (patch)
tree188622af7d7358c6fea3f55936452c1c5641a6f8
parent6c8d43bae5a967fc2ffe9fab3f90344b23ce580b (diff)
downloadtxr-6e10b08485741a5c960f32b80f43ab6e9070ea0a.tar.gz
txr-6e10b08485741a5c960f32b80f43ab6e9070ea0a.tar.bz2
txr-6e10b08485741a5c960f32b80f43ab6e9070ea0a.zip
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.
-rw-r--r--arith.c1
1 files changed, 0 insertions, 1 deletions
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))