diff --git a/ChangeLog b/ChangeLog index 43530a1b..a4efa3c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * src/global.c (strtosc) - Correct a misspelled keyword. * src/rcfile.c (check_vitals_mapped) - Actually translate a helpful message, and reword it somewhat for clarity. + * src/global.c - Remove unused function 'free_shortcutage'. 2014-02-28 Eitan Adler * src/nano.c (do_toggle) - Constify a char pointer, to fix diff --git a/src/global.c b/src/global.c index 461652bf..59320a38 100644 --- a/src/global.c +++ b/src/global.c @@ -1336,18 +1336,6 @@ void set_spell_shortcuts(void) #endif -/* Free the given shortcut. */ -void free_shortcutage(shortcut **shortcutage) -{ - assert(shortcutage != NULL); - - while (*shortcutage != NULL) { - shortcut *ps = *shortcutage; - *shortcutage = (*shortcutage)->next; - free(ps); - } -} - const subnfunc *sctofunc(sc *s) { subnfunc *f; diff --git a/src/proto.h b/src/proto.h index 07c7ae64..6f26c0e8 100644 --- a/src/proto.h +++ b/src/proto.h @@ -356,7 +356,6 @@ void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc , int metaval, int funcval, int miscval, bool view, void (*func)(void)); void shortcut_init(bool unjustify); -void free_shortcutage(shortcut **shortcutage); #ifdef DEBUG void thanks_for_all_the_fish(void); #endif