Skip to content

Commit

Permalink
kill ncvisual_inflate(), long deprecated #1777
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Oct 16, 2021
1 parent a9a9c51 commit b5ee18f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
9 changes: 0 additions & 9 deletions include/notcurses/notcurses.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 0 additions & 6 deletions src/lib/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)){
Expand Down
7 changes: 0 additions & 7 deletions src/lib/visual.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b5ee18f

Please sign in to comment.