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.
master
Benno Schulenberg 2019-06-15 14:15:42 +02:00
parent e8eb30cad6
commit accd17c249
1 changed files with 0 additions and 4 deletions

View File

@ -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