From: Matthew Fernandez Date: Sun, 6 Feb 2022 06:51:26 +0000 (+1100) Subject: neatogen: [nfc] remove unused 'read_top' macro X-Git-Tag: 3.0.0~39^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d122eea6d7f4343b487e45ff8e8e00decc35d358;p=graphviz 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`. --- 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