From b4737072a68593479d100caf4be3ea110b94511f Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Tue, 12 Jul 2016 09:24:32 +0200
Subject: [PATCH] tweaks: delete an element that is always FALSE and never used

---
 src/color.c | 2 --
 src/nano.c  | 4 ----
 src/nano.h  | 2 --
 3 files changed, 8 deletions(-)

diff --git a/src/color.c b/src/color.c
index 1caea04a..5057dc3d 100644
--- a/src/color.c
+++ b/src/color.c
@@ -62,12 +62,10 @@ void set_colorpairs(void)
 	    if (background == -1 && !using_defaults)
 		background = COLOR_BLACK;
 	    init_pair(i + 1, foreground, background);
-	    interface_color_pair[i].bright = FALSE;
 	    interface_color_pair[i].pairnum =
 			COLOR_PAIR(i + 1) | (bright ? A_BOLD : A_NORMAL);
 	}
 	else {
-	    interface_color_pair[i].bright = FALSE;
 	    if (i != FUNCTION_TAG)
 		interface_color_pair[i].pairnum = hilite_attribute;
 	    else
diff --git a/src/nano.c b/src/nano.c
index 9484f015..e1fc8c64 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -2510,10 +2510,6 @@ int main(int argc, char **argv)
     interface_color_pair[STATUS_BAR].pairnum = hilite_attribute;
     interface_color_pair[KEY_COMBO].pairnum = hilite_attribute;
     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
 
 #if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED)
diff --git a/src/nano.h b/src/nano.h
index 98ec049a..dbd5af30 100644
--- a/src/nano.h
+++ b/src/nano.h
@@ -203,8 +203,6 @@ typedef struct color_pair {
     int pairnum;
 	/* The color pair number used for this foreground color and
 	 * background color. */
-    bool bright;
-	/* Is this color A_BOLD? */
 } color_pair;
 
 #ifndef DISABLE_COLOR
-- 
GitLab