diff --git a/src/files.c b/src/files.c index 11783a91..5e298111 100644 --- a/src/files.c +++ b/src/files.c @@ -982,7 +982,6 @@ bool close_open_file(void) } #endif /* ENABLE_MULTIBUFFER */ -#if !defined(DISABLE_SPELLER) || !defined(DISABLE_OPERATINGDIR) /* When passed "[relative path]" or "[relative path][filename]" in * origpath, return "[full path]" or "[full path][filename]" on success, * or NULL on error. Do this if the file doesn't exist but the relative @@ -1109,9 +1108,7 @@ char *get_full_path(const char *origpath) return d_there; } -#endif /* !DISABLE_SPELLER || !DISABLE_OPERATINGDIR */ -#ifndef DISABLE_SPELLER /* Return the full version of path, as returned by get_full_path(). On * error, if path doesn't reference a directory, or if the directory * isn't writable, return NULL. */ @@ -1176,7 +1173,6 @@ char *safe_tempfile(FILE **f) return full_tempdir; } -#endif /* !DISABLE_SPELLER */ #ifndef DISABLE_OPERATINGDIR /* Initialize full_operating_dir based on operating_dir. */ diff --git a/src/proto.h b/src/proto.h index 7efa41e2..293c0f1a 100644 --- a/src/proto.h +++ b/src/proto.h @@ -275,13 +275,9 @@ void open_prevfile_void(void); void open_nextfile_void(void); bool close_open_file(void); #endif -#if !defined(DISABLE_SPELLER) || !defined(DISABLE_OPERATINGDIR) char *get_full_path(const char *origpath); -#endif -#ifndef DISABLE_SPELLER char *check_writable_directory(const char *path); char *safe_tempfile(FILE **f); -#endif #ifndef DISABLE_OPERATINGDIR void init_operating_dir(void); bool check_operating_dir(const char *currpath, bool allow_tabcomp);