]> granicus.if.org Git - nethack/commitdiff
curses color cleanup
authorPatR <rankin@nethack.org>
Sun, 6 Jun 2021 22:23:39 +0000 (15:23 -0700)
committerPatR <rankin@nethack.org>
Sun, 6 Jun 2021 22:23:39 +0000 (15:23 -0700)
The color handling changes for curses left a set of variables
unused, so get rid of them.

win/curses/cursinit.c

index 43324b7242f688943ef2ad151a3e82537a5126a4..1840836c422b0fe7ce67aa9546584199386fe293 100644 (file)
@@ -18,24 +18,13 @@ static void set_window_position(int *, int *, int *, int *, int,
                                 int *, int *, int *, int *, int,
                                 int, int);
 
-/* array to save initial terminal colors for later restoration */
-
+#if 0   /* no longer used */
 typedef struct nhrgb_type {
     short r;
     short g;
     short b;
 } nhrgb;
-
-nhrgb orig_yellow;
-nhrgb orig_white;
-nhrgb orig_darkgray;
-nhrgb orig_hired;
-nhrgb orig_higreen;
-nhrgb orig_hiyellow;
-nhrgb orig_hiblue;
-nhrgb orig_himagenta;
-nhrgb orig_hicyan;
-nhrgb orig_hiwhite;
+#endif
 
 /* Banners used for an optional ASCII splash screen */