From 3cd3e32ec315983c564522e6f028f04b80148158 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 1 Jul 2014 10:52:07 +0000 Subject: [PATCH] There are no tagless functions, so there is no need to check. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5044 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/help.c | 3 --- src/winio.c | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e773b54..5ed99bdb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ to always set 'currmenu', so that we can rely on it. * src/*.c (get_shortcut): Now that 'currmenu' is really global, stop passing it around. + * src/help.c (help_init), src/winio.c (bottombars): There are + no tagless functions, so there is no need to check. 2014-06-30 Mark Majeres * src/cut.c, src/global.c, src/nano.c: Rename 'cut_till_end' to diff --git a/src/help.c b/src/help.c index 4bb2aa26..90696b23 100644 --- a/src/help.c +++ b/src/help.c @@ -410,9 +410,6 @@ void help_init(void) if ((f->menus & currmenu) == 0) continue; - if (!f->desc || f->desc[0] == '\0') - continue; - /* Let's simply show the first two shortcuts from the list. */ for (s = sclist, scsfound = 0; s != NULL; s = s->next) { diff --git a/src/winio.c b/src/winio.c index 04cd6d0b..5e60857e 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2396,9 +2396,6 @@ void bottombars(int menu) if ((f->menus & menu) == 0) continue; - if (!f->desc || strlen(f->desc) == 0) - continue; - #ifdef DEBUG fprintf(stderr, "found one! f->menus = %x, desc = \"%s\"\n", f->menus, f->desc); #endif -- 2.39.5