mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
Macro cleanup: HAS_SWAP_EXISTS_ACTION
Neovim always ships with all features[0], so this serves no purpose. Besides, this always evaluated to true. [0]: https://github.com/neovim/neovim/wiki/Differences-from-vim
This commit is contained in:
@@ -3367,9 +3367,7 @@ findswapname (
|
||||
* for the current file, and the buffer was not recovered. */
|
||||
if (differ == FALSE && !(curbuf->b_flags & BF_RECOVERED)
|
||||
&& vim_strchr(p_shm, SHM_ATTENTION) == NULL) {
|
||||
#if defined(HAS_SWAP_EXISTS_ACTION)
|
||||
int choice = 0;
|
||||
#endif
|
||||
|
||||
#ifdef UNIX
|
||||
process_still_running = FALSE;
|
||||
@@ -3427,7 +3425,6 @@ findswapname (
|
||||
redraw_all_later(NOT_VALID);
|
||||
}
|
||||
|
||||
#if defined(HAS_SWAP_EXISTS_ACTION)
|
||||
if (choice > 0) {
|
||||
switch (choice) {
|
||||
case 1:
|
||||
@@ -3454,7 +3451,6 @@ findswapname (
|
||||
if (!os_file_exists(fname))
|
||||
break;
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
MSG_PUTS("\n");
|
||||
if (msg_silent == 0)
|
||||
|
Reference in New Issue
Block a user