From 1b1ec3c39bcf5620b7fb02660f5e7056a1ea0f4c Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 10 Oct 2021 20:51:08 -0400 Subject: [PATCH] remove deprecated palette256 wrappers #1777 --- include/notcurses/notcurses.h | 8 -------- src/lib/notcurses.c | 12 ------------ 2 files changed, 20 deletions(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 0417a86583..9f641cdad6 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -4118,14 +4118,6 @@ cells_double_box(struct ncplane* n, uint32_t styles, uint64_t channels, API struct ncplane* nctablet_ncplane(struct nctablet* t) __attribute__ ((deprecated)); -API ALLOC ncpalette* palette256_new(struct notcurses* nc) - __attribute__ ((deprecated)); - -API int palette256_use(struct notcurses* nc, const ncpalette* p) - __attribute__ ((deprecated)); - -API void palette256_free(ncpalette* p) __attribute__ ((deprecated)); - #undef API #undef ALLOC diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 787a44925b..16f0281bed 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -2331,10 +2331,6 @@ ncpalette* ncpalette_new(notcurses* nc){ return p; } -ncpalette* palette256_new(notcurses* nc){ - return ncpalette_new(nc); -} - int ncpalette_use(notcurses* nc, const ncpalette* p){ int ret = -1; if(!notcurses_canchangecolor(nc)){ @@ -2350,18 +2346,10 @@ int ncpalette_use(notcurses* nc, const ncpalette* p){ return ret; } -int palette256_use(notcurses* nc, const ncpalette* p){ - return ncpalette_use(nc, p); -} - void ncpalette_free(ncpalette* p){ free(p); } -void palette256_free(ncpalette* p){ - ncpalette_free(p); -} - bool ncplane_translate_abs(const ncplane* n, int* restrict y, int* restrict x){ ncplane_translate(ncplane_stdplane_const(n), n, y, x); if(y){