mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove unused function highlight_gui_color_rgb.
This commit is contained in:
parent
856f39bf0f
commit
f58e888ce6
28
src/syntax.c
28
src/syntax.c
@ -7276,34 +7276,6 @@ highlight_color (
|
|||||||
return NULL;
|
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.
|
* Output the syntax list header.
|
||||||
* Return TRUE when started a new line.
|
* Return TRUE when started a new line.
|
||||||
|
@ -44,7 +44,6 @@ attrentry_T *syn_term_attr2entry(int attr);
|
|||||||
attrentry_T *syn_cterm_attr2entry(int attr);
|
attrentry_T *syn_cterm_attr2entry(int attr);
|
||||||
char_u *highlight_has_attr(int id, int flag, int modec);
|
char_u *highlight_has_attr(int id, int flag, int modec);
|
||||||
char_u *highlight_color(int id, char_u *what, 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 syn_name2id(char_u *name);
|
||||||
int highlight_exists(char_u *name);
|
int highlight_exists(char_u *name);
|
||||||
char_u *syn_id2name(int id);
|
char_u *syn_id2name(int id);
|
||||||
|
Loading…
Reference in New Issue
Block a user