some dead code eliminations and a couple of documentation updates

This commit is contained in:
nhmall
2019-11-30 13:35:14 -05:00
parent 42a13a1198
commit 0843c5d922
4 changed files with 10 additions and 39 deletions

View File

@@ -1282,44 +1282,6 @@ int color;
xputs(hilites[color]);
}
#if 0
/* Replaced by src/windows.c general proc or a macro in 3.6.3 */
/* not to be confused with has_colors() in unixtty.c */
int
has_color(color)
int color;
{
#ifdef X11_GRAPHICS
/* XXX has_color() should be added to windowprocs */
if (windowprocs.name != NULL && !strcmpi(windowprocs.name, "X11"))
return 1;
#endif
#ifdef GEM_GRAPHICS
/* XXX has_color() should be added to windowprocs */
if (windowprocs.name != NULL && !strcmpi(windowprocs.name, "Gem"))
return 1;
#endif
#ifdef QT_GRAPHICS
/* XXX has_color() should be added to windowprocs */
if (windowprocs.name != NULL && !strcmpi(windowprocs.name, "Qt"))
return 1;
#endif
#ifdef CURSES_GRAPHICS
/* XXX has_color() should be added to windowprocs */
/* iflags.wc_color is set to false and the option disabled if the
terminal cannot display color */
if (windowprocs.name != NULL && !strcmpi(windowprocs.name, "curses"))
return iflags.wc_color;
#endif
#ifdef AMII_GRAPHICS
/* hilites[] not used */
return iflags.use_color ? 1 : 0;
#else
return hilites[color] != (char *) 0;
#endif
}
#endif /* 0 */
#endif /* TEXTCOLOR */
#endif /* TTY_GRAPHICS && !NO_TERMS */