mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
tweaks: elide a redundant intermediate function
It hasn't been used elsewhere since commit 7f203100
from two years ago.
This commit is contained in:
parent
cf52f2ed62
commit
6ca22b80ef
@ -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);
|
||||
|
14
src/search.c
14
src/search.c
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user