Removing the superfluous function 'do_browser_help()'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4687 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-03-26 20:48:51 +00:00
parent bb06fae403
commit 55543ad42f
4 changed files with 3 additions and 13 deletions

View File

@ -9,6 +9,7 @@
* src/rcfile.c - Fix compilation with --disable-color.
* src/rcfile.c - Allow (un)binding keys when colour is disabled.
* src/help.c - Fix compilation with --disable-browser.
* src/{proto.h,browser.c,help.c} - Remove a superfluous function.
2014-03-26 Mike Frysinger <vapier@gentoo.org>.
* configure.ac - Clean up most of the --with/--enable flags:

View File

@ -173,10 +173,10 @@ char *do_browser(char *path, DIR *dir)
total_redraw();
} else if (f->scfunc == do_help_void) {
#ifndef DISABLE_HELP
do_browser_help();
do_help_void();
curs_set(0);
#else
nano_disabled_msg();
nano_disabled_msg();
#endif
/* Search for a filename. */
} else if (f->scfunc == do_search) {

View File

@ -201,14 +201,6 @@ void do_help(void (*refresh_func)(void))
help_text = NULL;
}
#ifndef DISABLE_BROWSER
/* Start the help browser for the file browser. */
void do_browser_help(void)
{
do_help(&browser_refresh);
}
#endif
/* This function allocates help_text, and stores the help string in it.
* help_text should be NULL initially. */
void help_init(void)

View File

@ -360,9 +360,6 @@ void thanks_for_all_the_fish(void);
#endif
/* All functions in help.c. */
#ifndef DISABLE_BROWSER
void do_browser_help(void);
#endif
void do_help_void(void);
#ifndef DISABLE_HELP
void do_help(void (*refresh_func)(void));