kill ncplane_styles(), duplicates ncplane_attrs()

This commit is contained in:
nick black 2020-08-16 07:26:16 -04:00
parent d57e1880e0
commit 202b88615f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
4 changed files with 1 additions and 8 deletions

View File

@ -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'.

View File

@ -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);

View File

@ -74,7 +74,6 @@
// ncplane_set_scrolling
// ncplane_set_userptr
// ncplane_stain
// ncplane_styles
// ncplane_styles_off
// ncplane_styles_on
// ncplane_styles_set

View File

@ -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){