diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-24 06:17:53 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-24 12:17:53 +0200 |
commit | 06547cdfc00c4a9c47ef7ea30412b2925816786f (patch) | |
tree | 7153e19d09ef4380580c6d020649fda7cb06630c /src | |
parent | 451f6046b0d4fc039894ed4a40d791d3098dcd78 (diff) | |
download | rneovim-06547cdfc00c4a9c47ef7ea30412b2925816786f.tar.gz rneovim-06547cdfc00c4a9c47ef7ea30412b2925816786f.tar.bz2 rneovim-06547cdfc00c4a9c47ef7ea30412b2925816786f.zip |
sign: REMOVE FEAT_SIGN_ICONS, dead code #10595
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/sign.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c index 9c391428ca..0f399d9922 100644 --- a/src/nvim/sign.c +++ b/src/nvim/sign.c @@ -28,9 +28,6 @@ struct sign int sn_typenr; // type number of sign char_u *sn_name; // name of sign char_u *sn_icon; // name of pixmap -# ifdef FEAT_SIGN_ICONS - void *sn_image; // icon image -# endif char_u *sn_text; // text used instead of pixmap int sn_line_hl; // highlight ID for line int sn_text_hl; // highlight ID for text @@ -689,15 +686,6 @@ static void sign_define_init_icon(sign_T *sp, char_u *icon) xfree(sp->sn_icon); sp->sn_icon = vim_strsave(icon); backslash_halve(sp->sn_icon); -# ifdef FEAT_SIGN_ICONS - if (gui.in_use) { - out_flush(); - if (sp->sn_image != NULL) { - gui_mch_destroy_sign(sp->sn_image); - } - sp->sn_image = gui_mch_register_sign(sp->sn_icon); - } -# endif } /// Initialize the text for a new sign @@ -1431,21 +1419,6 @@ void sign_get_placed( } } -# if defined(FEAT_SIGN_ICONS) || defined(PROTO) -/// Allocate the icons. Called when the GUI has started. Allows defining -/// signs before it starts. -void sign_gui_started(void) -{ - sign_T *sp; - - for (sp = first_sign; sp != NULL; sp = sp->sn_next) { - if (sp->sn_icon != NULL) { - sp->sn_image = gui_mch_register_sign(sp->sn_icon); - } - } -} -# endif - /// List one sign. static void sign_list_defined(sign_T *sp) { @@ -1549,22 +1522,6 @@ char_u * sign_get_text(int typenr) return NULL; } -# if defined(FEAT_SIGN_ICONS) || defined(PROTO) -void * sign_get_image( - int typenr // the attribute which may have a sign -) -{ - sign_T *sp; - - for (sp = first_sign; sp != NULL; sp = sp->sn_next) { - if (sp->sn_typenr == typenr) { - return sp->sn_image; - } - } - return NULL; -} -# endif - /// Undefine/free all signs. void free_signs(void) { |