aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-04-10 19:04:12 +0200
committerThomas Wienecke <wienecke.t@gmail.com>2014-05-03 17:41:05 +0200
commitf58e888ce678378f1a70bbde4ea531cc88bea0dd (patch)
treed234cf9bf69be345336ab87f4ee2e6819d2db7da /src
parent856f39bf0f23a520ae1bd78d1ff7a790af48c54a (diff)
downloadrneovim-f58e888ce678378f1a70bbde4ea531cc88bea0dd.tar.gz
rneovim-f58e888ce678378f1a70bbde4ea531cc88bea0dd.tar.bz2
rneovim-f58e888ce678378f1a70bbde4ea531cc88bea0dd.zip
Remove unused function highlight_gui_color_rgb.
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c28
-rw-r--r--src/syntax.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/src/syntax.c b/src/syntax.c
index dd2f87c48b..e05a4d1bfb 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -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.
diff --git a/src/syntax.h b/src/syntax.h
index ea2b7cf119..f3e7e87c7b 100644
--- a/src/syntax.h
+++ b/src/syntax.h
@@ -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);