Remove unused function get_shape_idx.

This commit is contained in:
Thomas Wienecke 2014-04-10 19:01:51 +02:00
parent a4af779c8d
commit e5d1dd9689
2 changed files with 0 additions and 33 deletions

View File

@ -207,35 +207,3 @@ char_u *parse_shape_opt(int what)
return NULL;
}
/*
* Return the index into shape_table[] for the current mode.
* When "mouse" is TRUE, consider indexes valid for the mouse pointer.
*/
int get_shape_idx(int mouse)
{
if (!mouse && State == SHOWMATCH)
return SHAPE_IDX_SM;
if (State & VREPLACE_FLAG)
return SHAPE_IDX_R;
if (State & REPLACE_FLAG)
return SHAPE_IDX_R;
if (State & INSERT)
return SHAPE_IDX_I;
if (State & CMDLINE) {
if (cmdline_at_end())
return SHAPE_IDX_C;
if (cmdline_overstrike())
return SHAPE_IDX_CR;
return SHAPE_IDX_CI;
}
if (finish_op)
return SHAPE_IDX_O;
if (VIsual_active) {
if (*p_sel == 'e')
return SHAPE_IDX_VE;
else
return SHAPE_IDX_V;
}
return SHAPE_IDX_N;
}

View File

@ -48,6 +48,5 @@ typedef struct cursor_entry {
} cursorentry_T;
char_u *parse_shape_opt(int what);
int get_shape_idx(int mouse);
#endif /* NEOVIM_CURSOR_SHAPE_H */