tweaks: elide a redundant intermediate function

It hasn't been used elsewhere since commit 7f203100 from two years ago.
This commit is contained in:
Benno Schulenberg 2020-07-25 15:08:32 +02:00
parent cf52f2ed62
commit 6ca22b80ef
2 changed files with 4 additions and 11 deletions

View File

@ -461,7 +461,6 @@ bool regexp_init(const char *regexp);
void tidy_up_after_search(void);
int findnextstr(const char *needle, bool whole_word_only, int modus,
size_t *match_len, bool skipone, const linestruct *begin, size_t begin_x);
void do_search(void);
void do_search_forward(void);
void do_search_backward(void);
void do_findprevious(void);

View File

@ -316,24 +316,18 @@ int findnextstr(const char *needle, bool whole_word_only, int modus,
return 1;
}
/* Ask what to search for and then go looking for it. */
void do_search(void)
{
search_init(FALSE, FALSE);
}
/* Search forward for a string. */
/* Ask for a string and then search forward for it. */
void do_search_forward(void)
{
UNSET(BACKWARDS_SEARCH);
do_search();
search_init(FALSE, FALSE);
}
/* Search backwards for a string. */
/* Ask for a string and then search backwards for it. */
void do_search_backward(void)
{
SET(BACKWARDS_SEARCH);
do_search();
search_init(FALSE, FALSE);
}
/* Search for the last string without prompting. */