From 09092155a66388bbd7be8d16debb35abfcfae700 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 8 Aug 2010 16:38:42 +0200 Subject: Remove unused code. --- src/edit.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index ed5b79859..04a17ebf7 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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 -- cgit v1.2.3