mirror of git://git.sv.gnu.org/nano.git
Removing unused function 'free_shortcutage'.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4627 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
fe267f61d9
commit
919c9bdbbb
|
@ -5,6 +5,7 @@
|
||||||
* src/global.c (strtosc) - Correct a misspelled keyword.
|
* src/global.c (strtosc) - Correct a misspelled keyword.
|
||||||
* src/rcfile.c (check_vitals_mapped) - Actually translate a
|
* src/rcfile.c (check_vitals_mapped) - Actually translate a
|
||||||
helpful message, and reword it somewhat for clarity.
|
helpful message, and reword it somewhat for clarity.
|
||||||
|
* src/global.c - Remove unused function 'free_shortcutage'.
|
||||||
|
|
||||||
2014-02-28 Eitan Adler <lists@eitanadler.com>
|
2014-02-28 Eitan Adler <lists@eitanadler.com>
|
||||||
* src/nano.c (do_toggle) - Constify a char pointer, to fix
|
* src/nano.c (do_toggle) - Constify a char pointer, to fix
|
||||||
|
|
12
src/global.c
12
src/global.c
|
@ -1336,18 +1336,6 @@ void set_spell_shortcuts(void)
|
||||||
#endif
|
#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)
|
const subnfunc *sctofunc(sc *s)
|
||||||
{
|
{
|
||||||
subnfunc *f;
|
subnfunc *f;
|
||||||
|
|
|
@ -356,7 +356,6 @@ void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc
|
||||||
, int metaval, int funcval, int miscval, bool view, void
|
, int metaval, int funcval, int miscval, bool view, void
|
||||||
(*func)(void));
|
(*func)(void));
|
||||||
void shortcut_init(bool unjustify);
|
void shortcut_init(bool unjustify);
|
||||||
void free_shortcutage(shortcut **shortcutage);
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void thanks_for_all_the_fish(void);
|
void thanks_for_all_the_fish(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue