Permalink
Browse files

owl_fmtext_get_colorpair: Remove unused variable default_bg.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
  • Loading branch information...
1 parent 66a8cd6 commit 423adcb28fbd0b9892f3e79fafc4d098a8932a55 @andersk andersk committed Mar 7, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 fmtext.c
View
@@ -851,19 +851,17 @@ void owl_fmtext_reset_colorpairs(void)
short owl_fmtext_get_colorpair(int fg, int bg)
{
owl_colorpair_mgr *cpmgr;
- short pair, default_bg;
+ short pair;
/* Sanity (Bounds) Check */
if (fg > COLORS || fg < OWL_COLOR_DEFAULT) fg = OWL_COLOR_DEFAULT;
if (bg > COLORS || bg < OWL_COLOR_DEFAULT) bg = OWL_COLOR_DEFAULT;
#ifdef HAVE_USE_DEFAULT_COLORS
if (fg == OWL_COLOR_DEFAULT) fg = -1;
- default_bg = OWL_COLOR_DEFAULT;
#else
if (fg == OWL_COLOR_DEFAULT) fg = 0;
if (bg == OWL_COLOR_DEFAULT) bg = 0;
- default_bg = COLOR_BLACK;
#endif
/* looking for a pair we already set up for this draw. */

0 comments on commit 423adcb

Please sign in to comment.