0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Remove unused code.

This commit is contained in:
Bram Moolenaar
2010-08-08 16:38:42 +02:00
parent 83687a7215
commit 09092155a6
31 changed files with 15 additions and 714 deletions

View File

@@ -192,9 +192,6 @@ static int spell_bad_len = 0; /* length of located bad word */
#endif
static void stop_insert __ARGS((pos_T *end_insert_pos, int esc));
static int echeck_abbr __ARGS((int));
#if 0
static void replace_push_off __ARGS((int c));
#endif
static int replace_pop __ARGS((void));
static void replace_join __ARGS((int off));
static void replace_pop_ins __ARGS((void));
@@ -3352,19 +3349,6 @@ ins_compl_new_leader()
compl_restarting = FALSE;
}
#if 0 /* disabled, made CTRL-L, BS and typing char jump to original text. */
if (!compl_used_match)
{
/* Go to the original text, since none of the matches is inserted. */
if (compl_first_match->cp_prev != NULL
&& (compl_first_match->cp_prev->cp_flags & ORIGINAL_TEXT))
compl_shown_match = compl_first_match->cp_prev;
else
compl_shown_match = compl_first_match;
compl_curr_match = compl_shown_match;
compl_shows_dir = compl_direction;
}
#endif
compl_enter_selects = !compl_used_match;
/* Show the popup menu with a different set of matches. */
@@ -7152,26 +7136,6 @@ replace_push_mb(p)
}
#endif
#if 0
/*
* call replace_push(c) with replace_offset set to the first NUL.
*/
static void
replace_push_off(c)
int c;
{
char_u *p;
p = replace_stack + replace_stack_nr;
for (replace_offset = 1; replace_offset < replace_stack_nr;
++replace_offset)
if (*--p == NUL)
break;
replace_push(c);
replace_offset = 0;
}
#endif
/*
* Pop one item from the replace stack.
* return -1 if stack empty