From 202b88615f442c397fbfe64f3870df99d630f965 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 16 Aug 2020 07:26:16 -0400 Subject: [PATCH] kill ncplane_styles(), duplicates ncplane_attrs() --- USAGE.md | 3 --- python/src/notcurses/build_notcurses.py | 1 + rust/src/plane.rs | 1 - src/lib/notcurses.c | 4 ---- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/USAGE.md b/USAGE.md index 87a4a31c7..c15fb155d 100644 --- a/USAGE.md +++ b/USAGE.md @@ -788,9 +788,6 @@ void ncplane_styles_on(struct ncplane* n, unsigned stylebits); // Remove the specified styles from the ncplane's existing spec. void ncplane_styles_off(struct ncplane* n, unsigned stylebits); -// Return the current styling for this ncplane. -unsigned ncplane_styles(const struct ncplane* n); - // Set the ncplane's base cell to this cell. It will be used for purposes of // rendering anywhere that the ncplane's gcluster is 0. Erasing the ncplane // does not reset the base cell; this function must be called with a zero 'c'. diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index f61851718..0b14df6f9 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -148,6 +148,7 @@ int ncplane_set_fg_alpha(struct ncplane* n, unsigned alpha); int ncplane_set_bg_alpha(struct ncplane* n, unsigned alpha); int ncplane_set_fg_palindex(struct ncplane* n, int idx); int ncplane_set_bg_palindex(struct ncplane* n, int idx); +unsigned ncplane_styles(const ncplane* n); void ncplane_styles_set(struct ncplane* n, unsigned stylebits); void ncplane_styles_on(struct ncplane* n, unsigned stylebits); void ncplane_styles_off(struct ncplane* n, unsigned stylebits); diff --git a/rust/src/plane.rs b/rust/src/plane.rs index ef76ad0f4..818ab923c 100644 --- a/rust/src/plane.rs +++ b/rust/src/plane.rs @@ -74,7 +74,6 @@ // ncplane_set_scrolling // ncplane_set_userptr // ncplane_stain -// ncplane_styles // ncplane_styles_off // ncplane_styles_on // ncplane_styles_set diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index c42390782..dbca2c2c1 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -1567,10 +1567,6 @@ void ncplane_set_attr(ncplane* n, unsigned stylebits){ n->stylemask = stylebits & NCSTYLE_MASK; } -unsigned ncplane_styles(const ncplane* n){ - return n->stylemask; -} - // i hate the big allocation and two copies here, but eh what you gonna do? // well, for one, we don't need the huge allocation FIXME char* ncplane_vprintf_prep(const char* format, va_list ap){