commit 34528db096ac14883aa028184eb77ef26a22ffd6
parent c79b52da1dac8484b984e1946713be46c9d8b1d9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 13 Jun 2020 14:02:46 +0200
tweaks: remove unneeded variables after the previous change
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/color.c b/src/color.c
@@ -109,15 +109,10 @@ void set_interface_colorpairs(void)
void prepare_palette(void)
{
const colortype *ink;
- short foreground, background;
/* For each coloring expression, initialize the color pair. */
- for (ink = openfile->syntax->color; ink != NULL; ink = ink->next) {
- foreground = ink->fg;
- background = ink->bg;
-
- init_pair(ink->pairnum, foreground, background);
- }
+ for (ink = openfile->syntax->color; ink != NULL; ink = ink->next)
+ init_pair(ink->pairnum, ink->fg, ink->bg);
have_palette = TRUE;
}