diff --git a/ChangeLog b/ChangeLog index 7e773b541b11aed3889ee550d4c55cd054d2c0d7..5ed99bdb4f46b4c5e98c51264d9e14f2bbf5dd3e 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 <mark@engine12.com> * 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 4bb2aa26b0ab1673dada8255e26a3296a82797bc..90696b237393b25daced0b7023d2590ab5241013 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 04cd6d0b267fe9969ee46e99d74bb0d83bbb493c..5e60857e61436943babb2ef0c31539d0fc203129 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