From 341a351b790bbd81b24ff8d646c2ae9d9b240be7 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 30 May 2017 16:14:42 +0100 Subject: [PATCH] remove unused macros --- mutt_curses.h | 3 --- options.h | 1 - pager.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/mutt_curses.h b/mutt_curses.h index def752a0f..98814a489 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -79,9 +79,6 @@ #undef lines #endif /* lines */ -#define CLEARLINE(win, x) mutt_window_clearline(win, x) -#define CENTERLINE(win, x, y) \ - mutt_window_move(win, y, (win->cols - strlen(x)) / 2), addstr(x) #define BEEP() \ do \ { \ diff --git a/options.h b/options.h index 3977be152..d51149462 100644 --- a/options.h +++ b/options.h @@ -274,7 +274,6 @@ enum OPTMAX }; -#define mutt_bit_alloc(n) calloc((n + 7) / 8, sizeof(char)) #define mutt_bit_set(v, n) v[n / 8] |= (1 << (n % 8)) #define mutt_bit_unset(v, n) v[n / 8] &= ~(1 << (n % 8)) #define mutt_bit_toggle(v, n) v[n / 8] ^= (1 << (n % 8)) diff --git a/pager.c b/pager.c index 9454bb1f2..7e7d6adb0 100644 --- a/pager.c +++ b/pager.c @@ -63,8 +63,6 @@ #define ISHEADER(x) ((x) == MT_COLOR_HEADER || (x) == MT_COLOR_HDEFAULT) #define IsAttach(x) (x && (x)->bdy) -#define IsRecvAttach(x) (x && (x)->bdy && (x)->fp) -#define IsSendAttach(x) (x && (x)->bdy && !(x)->fp) #define IsMsgAttach(x) (x && (x)->fp && (x)->bdy && (x)->bdy->hdr) #define IsHeader(x) (x && (x)->hdr && !(x)->bdy) -- 2.40.0