From d122eea6d7f4343b487e45ff8e8e00decc35d358 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 6 Feb 2022 17:51:26 +1100 Subject: [PATCH] neatogen: [nfc] remove unused 'read_top' macro This macro also appears to be incorrect; it does not use its parameter `h` but instead uses `s`. --- lib/neatogen/closest.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/neatogen/closest.c b/lib/neatogen/closest.c index f104dca44..3ca9a01a0 100644 --- a/lib/neatogen/closest.c +++ b/lib/neatogen/closest.c @@ -59,8 +59,6 @@ static void freeStack(PairStack * s) #define pop(s,x) ((s->top==0) ? FALSE : (s->top--, x = s->data[s->top], TRUE)) -#define read_top(h,x) ((s->top==0) ? FALSE : (x = s->data[s->top-1], TRUE)) - #define sub(h,i) (h->data[i]) /* An auxulliary data structure (a heap) for -- 2.50.1