From b5ee18fa898064cef06fc67400650a3a2d3ee42b Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 10 Oct 2021 20:50:22 -0400 Subject: [PATCH] kill ncvisual_inflate(), long deprecated #1777 --- include/notcurses/notcurses.h | 9 --------- src/lib/debug.c | 6 ------ src/lib/visual.c | 7 ------- 3 files changed, 22 deletions(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 09a0712fa1..9316cff68b 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -4154,15 +4154,6 @@ API int palette256_use(struct notcurses* nc, const ncpalette* p) API void palette256_free(ncpalette* p) __attribute__ ((deprecated)); -// Inflate each pixel in the image to 'scale'x'scale' pixels. It is an error -// if 'scale' is less than 1. The original color is retained. -// Deprecated; use ncvisual_resize_noninterpolative(), which this now wraps. -API __attribute__ ((deprecated)) int ncvisual_inflate(struct ncvisual* n, int scale) - __attribute__ ((nonnull (1))); - -API void notcurses_debug_caps(const struct notcurses* nc, FILE* debugfp) - __attribute__ ((deprecated)) __attribute__ ((nonnull (1, 2))); - #undef API #undef ALLOC diff --git a/src/lib/debug.c b/src/lib/debug.c index 6724fe9793..dc86796c7c 100644 --- a/src/lib/debug.c +++ b/src/lib/debug.c @@ -2,12 +2,6 @@ int loglevel = NCLOGLEVEL_SILENT; -void notcurses_debug_caps(const notcurses* nc, FILE* debugfp){ - // FIXME deprecated, remove for ABI3 - (void)nc; - (void)debugfp; -} - void notcurses_debug(const notcurses* nc, FILE* debugfp){ fbuf f; if(fbuf_init_small(&f)){ diff --git a/src/lib/visual.c b/src/lib/visual.c index 789eba3b05..0ad20b3c86 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -1297,10 +1297,3 @@ bool notcurses_canopen_videos(const notcurses* nc __attribute__ ((unused))){ } return visual_implementation.canopen_videos; } - -int ncvisual_inflate(ncvisual* n, int scale){ - if(scale <= 0){ - return -1; - } - return ncvisual_resize_noninterpolative(n, n->pixy * scale, n->pixx * scale); -}