forked from aniani/vim
patch 9.0.1403: unused variables and functions
Problem: Unused variables and functions. Solution: Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145)
This commit is contained in:
committed by
Bram Moolenaar
parent
d13dd30240
commit
e764d1b421
@@ -662,6 +662,7 @@ changed_window_setting_win(win_T *wp)
|
||||
redraw_win_later(wp, UPD_NOT_VALID);
|
||||
}
|
||||
|
||||
#if defined(FEAT_PROP_POPUP) || defined(PROTO)
|
||||
/*
|
||||
* Call changed_window_setting_win() for every window containing "buf".
|
||||
*/
|
||||
@@ -675,6 +676,7 @@ changed_window_setting_buf(buf_T *buf)
|
||||
if (wp->w_buffer == buf)
|
||||
changed_window_setting_win(wp);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set wp->w_topline to a certain number.
|
||||
@@ -744,6 +746,7 @@ changed_line_abv_curs_win(win_T *wp)
|
||||
|VALID_CHEIGHT|VALID_TOPLINE);
|
||||
}
|
||||
|
||||
#if defined(FEAT_PROP_POPUP) || defined(PROTO)
|
||||
/*
|
||||
* Display of line has changed for "buf", invalidate cursor position and
|
||||
* w_botline.
|
||||
@@ -759,6 +762,7 @@ changed_line_display_buf(buf_T *buf)
|
||||
|VALID_CROW|VALID_CHEIGHT
|
||||
|VALID_TOPLINE|VALID_BOTLINE|VALID_BOTLINE_AP);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Make sure the value of curwin->w_botline is valid.
|
||||
@@ -3573,7 +3577,6 @@ do_check_cursorbind(void)
|
||||
int set_curswant = curwin->w_set_curswant;
|
||||
win_T *old_curwin = curwin;
|
||||
buf_T *old_curbuf = curbuf;
|
||||
int restart_edit_save;
|
||||
int old_VIsual_select = VIsual_select;
|
||||
int old_VIsual_active = VIsual_active;
|
||||
|
||||
@@ -3601,8 +3604,8 @@ do_check_cursorbind(void)
|
||||
|
||||
// Make sure the cursor is in a valid position. Temporarily set
|
||||
// "restart_edit" to allow the cursor to be beyond the EOL.
|
||||
restart_edit_save = restart_edit;
|
||||
restart_edit = TRUE;
|
||||
int restart_edit_save = restart_edit;
|
||||
restart_edit = 'a';
|
||||
check_cursor();
|
||||
|
||||
// Avoid a scroll here for the cursor position, 'scrollbind' is
|
||||
|
||||
Reference in New Issue
Block a user