Remove unused function highlight_gui_color_rgb.

This commit is contained in:
Thomas Wienecke 2014-04-10 19:04:12 +02:00
parent 856f39bf0f
commit f58e888ce6
2 changed files with 0 additions and 29 deletions

View File

@ -7276,34 +7276,6 @@ highlight_color (
return NULL;
}
#if (defined(FEAT_SYN_HL) && defined(FEAT_GUI) && defined(FEAT_PRINTER)) \
|| defined(PROTO)
/*
* Return color name of highlight group "id" as RGB value.
*/
long_u
highlight_gui_color_rgb (
int id,
int fg /* TRUE = fg, FALSE = bg */
)
{
guicolor_T color;
if (id <= 0 || id > highlight_ga.ga_len)
return 0L;
if (fg)
color = HL_TABLE()[id - 1].sg_gui_fg;
else
color = HL_TABLE()[id - 1].sg_gui_bg;
if (color == INVALCOLOR)
return 0L;
return gui_mch_get_rgb(color);
}
#endif
/*
* Output the syntax list header.
* Return TRUE when started a new line.

View File

@ -44,7 +44,6 @@ attrentry_T *syn_term_attr2entry(int attr);
attrentry_T *syn_cterm_attr2entry(int attr);
char_u *highlight_has_attr(int id, int flag, int modec);
char_u *highlight_color(int id, char_u *what, int modec);
long_u highlight_gui_color_rgb(int id, int fg);
int syn_name2id(char_u *name);
int highlight_exists(char_u *name);
char_u *syn_id2name(int id);