From accd17c249daaa4f4a8a9e401626de80608695a4 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 15 Jun 2019 14:15:42 +0200 Subject: [PATCH] tweaks: remove four unneeded pre-processor directives The parse_next_word() function is not being used by the history code anymore since commit ecd18c16, more than two years ago. --- src/rcfile.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 9b15c111..9088048f 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -186,9 +186,7 @@ void jot_error(const char *msg, ...) error->data = nmalloc(length + 1); sprintf(error->data, "%s", textbuf); } -#endif /* ENABLE_NANORC */ -#if defined(ENABLE_NANORC) || defined(ENABLE_HISTORIES) /* Parse the next word from the string, null-terminate it, and return * a pointer to the first character after the null terminator. The * returned pointer will point to '\0' if we hit the end of the line. */ @@ -208,9 +206,7 @@ char *parse_next_word(char *ptr) return ptr; } -#endif /* ENABLE_NANORC || ENABLE_HISTORIES */ -#ifdef ENABLE_NANORC /* Parse an argument, with optional quotes, after a keyword that takes * one. If the next word starts with a ", we say that it ends with the * last " of the line. Otherwise, we interpret it as usual, so that the