Skip to content

Commit

Permalink
remove deprecated palette256 wrappers #1777
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Oct 11, 2021
1 parent b3cb357 commit 1b1ec3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
8 changes: 0 additions & 8 deletions include/notcurses/notcurses.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 0 additions & 12 deletions src/lib/notcurses.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand All @@ -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){
Expand Down

0 comments on commit 1b1ec3c

Please sign in to comment.