From bf87a83058348694eadde290a1cc1bd478735ca0 Mon Sep 17 00:00:00 2001 From: Hinidu Date: Sat, 12 Apr 2014 00:34:15 +0300 Subject: [PATCH] Remove FEAT_SESSION Support for :mksession command --- config/config.h.in | 1 - src/nvim/ex_docmd.c | 2 +- src/nvim/misc2.c | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config/config.h.in b/config/config.h.in index f501bfdd19..c9e52ff0c4 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -138,7 +138,6 @@ #define FEAT_RIGHTLEFT #define FEAT_SCROLLBIND #define FEAT_SEARCH_EXTRA -#define FEAT_SESSION #define FEAT_SMARTINDENT #define FEAT_SPELL #define FEAT_STL_OPT diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index e532e5e97d..f17734eb5e 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -7065,7 +7065,7 @@ static void close_redir(void) } } -#if defined(FEAT_SESSION) && defined(USE_CRNL) +#ifdef USE_CRNL # define MKSESSION_NL static int mksession_nl = FALSE; /* use NL only in put_eol() */ #endif diff --git a/src/nvim/misc2.c b/src/nvim/misc2.c index 953344bdd5..c9c3edca71 100644 --- a/src/nvim/misc2.c +++ b/src/nvim/misc2.c @@ -362,8 +362,6 @@ int get_real_state(void) return State; } -#if defined(FEAT_SESSION) || defined(MSWIN) || defined(FEAT_GUI_MAC) \ - || defined(FEAT_GUI_GTK) || defined(PROTO) /* * Change to a file's directory. * Caller must call shorten_fnames()! @@ -377,7 +375,6 @@ int vim_chdirfile(char_u *fname) *path_tail_with_sep(dir) = NUL; return os_chdir((char *)dir) == 0 ? OK : FAIL; } -#endif /* * Change directory to "new_dir". Search 'cdpath' for relative directory names.