tweaks: delete two functions that are never executed

Those two operations are performed directly in do_browser().
This commit is contained in:
Benno Schulenberg 2020-07-04 17:14:52 +02:00
parent 2b9c0c5724
commit 07c1ac9035
3 changed files with 8 additions and 14 deletions

View File

@ -749,18 +749,6 @@ void do_fileresearch(bool forwards)
findfile(last_search, forwards);
}
/* Select the first file in the list. */
void to_first_file(void)
{
selected = 0;
}
/* Select the last file in the list. */
void to_last_file(void)
{
selected = filelist_len - 1;
}
/* Strip one element from the end of path, and return the stripped path.
* The returned string is dynamically allocated, and should be freed. */
char *strip_last_component(const char *path)

View File

@ -298,6 +298,12 @@ void flip_goto(void)
void to_files(void)
{
}
void to_first_file(void)
{
}
void to_last_file(void)
{
}
void goto_dir(void)
{
}

View File

@ -194,8 +194,6 @@ void browser_refresh(void);
void browser_select_dirname(const char *needle);
void do_filesearch(bool forwards);
void do_fileresearch(bool forwards);
void to_first_file(void);
void to_last_file(void);
char *strip_last_component(const char *path);
#endif
@ -654,6 +652,8 @@ void flip_replace(void);
void flip_goto(void);
#ifdef ENABLE_BROWSER
void to_files(void);
void to_first_file(void);
void to_last_file(void);
void goto_dir(void);
#endif
#ifndef NANO_TINY