mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
sign: REMOVE FEAT_SIGN_ICONS, dead code #10595
This commit is contained in:
parent
451f6046b0
commit
06547cdfc0
@ -28,9 +28,6 @@ struct sign
|
|||||||
int sn_typenr; // type number of sign
|
int sn_typenr; // type number of sign
|
||||||
char_u *sn_name; // name of sign
|
char_u *sn_name; // name of sign
|
||||||
char_u *sn_icon; // name of pixmap
|
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
|
char_u *sn_text; // text used instead of pixmap
|
||||||
int sn_line_hl; // highlight ID for line
|
int sn_line_hl; // highlight ID for line
|
||||||
int sn_text_hl; // highlight ID for text
|
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);
|
xfree(sp->sn_icon);
|
||||||
sp->sn_icon = vim_strsave(icon);
|
sp->sn_icon = vim_strsave(icon);
|
||||||
backslash_halve(sp->sn_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
|
/// 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.
|
/// List one sign.
|
||||||
static void sign_list_defined(sign_T *sp)
|
static void sign_list_defined(sign_T *sp)
|
||||||
{
|
{
|
||||||
@ -1549,22 +1522,6 @@ char_u * sign_get_text(int typenr)
|
|||||||
return NULL;
|
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.
|
/// Undefine/free all signs.
|
||||||
void free_signs(void)
|
void free_signs(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user