Commit b4737072 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: delete an element that is always FALSE and never used

No related merge requests found
Showing with 0 additions and 8 deletions
+0 -8
...@@ -62,12 +62,10 @@ void set_colorpairs(void) ...@@ -62,12 +62,10 @@ void set_colorpairs(void)
if (background == -1 && !using_defaults) if (background == -1 && !using_defaults)
background = COLOR_BLACK; background = COLOR_BLACK;
init_pair(i + 1, foreground, background); init_pair(i + 1, foreground, background);
interface_color_pair[i].bright = FALSE;
interface_color_pair[i].pairnum = interface_color_pair[i].pairnum =
COLOR_PAIR(i + 1) | (bright ? A_BOLD : A_NORMAL); COLOR_PAIR(i + 1) | (bright ? A_BOLD : A_NORMAL);
} }
else { else {
interface_color_pair[i].bright = FALSE;
if (i != FUNCTION_TAG) if (i != FUNCTION_TAG)
interface_color_pair[i].pairnum = hilite_attribute; interface_color_pair[i].pairnum = hilite_attribute;
else else
......
...@@ -2510,10 +2510,6 @@ int main(int argc, char **argv) ...@@ -2510,10 +2510,6 @@ int main(int argc, char **argv)
interface_color_pair[STATUS_BAR].pairnum = hilite_attribute; interface_color_pair[STATUS_BAR].pairnum = hilite_attribute;
interface_color_pair[KEY_COMBO].pairnum = hilite_attribute; interface_color_pair[KEY_COMBO].pairnum = hilite_attribute;
interface_color_pair[FUNCTION_TAG].pairnum = A_NORMAL; interface_color_pair[FUNCTION_TAG].pairnum = A_NORMAL;
interface_color_pair[TITLE_BAR].bright = FALSE;
interface_color_pair[STATUS_BAR].bright = FALSE;
interface_color_pair[KEY_COMBO].bright = FALSE;
interface_color_pair[FUNCTION_TAG].bright = FALSE;
#endif #endif
#if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED) #if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED)
......
...@@ -203,8 +203,6 @@ typedef struct color_pair { ...@@ -203,8 +203,6 @@ typedef struct color_pair {
int pairnum; int pairnum;
/* The color pair number used for this foreground color and /* The color pair number used for this foreground color and
* background color. */ * background color. */
bool bright;
/* Is this color A_BOLD? */
} color_pair; } color_pair;
#ifndef DISABLE_COLOR #ifndef DISABLE_COLOR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment