From 331bd7662e7f702716b27a1c9f025eda5251f0ca Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 27 Jun 2020 10:23:03 +0200 Subject: [PATCH] tweaks: delete a now-unused function --- src/global.c | 14 -------------- src/prototypes.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/global.c b/src/global.c index 329590a7..655832ed 100644 --- a/src/global.c +++ b/src/global.c @@ -460,20 +460,6 @@ const keystruct *first_sc_for(int menu, void (*func)(void)) return NULL; } -/* Return the first keycode that is bound to the given function in the - * current menu, if any; otherwise, return the given default value. */ -int the_code_for(void (*func)(void), int defaultval) -{ - const keystruct *sc = first_sc_for(currmenu, func); - - if (sc == NULL) - return defaultval; - - meta_key = (0x20 <= sc->keycode && sc->keycode <= 0x7E); - - return sc->keycode; -} - /* Return the number of entries that can be shown in the given menu. */ size_t shown_entries_for(int menu) { diff --git a/src/prototypes.h b/src/prototypes.h index 6d91adbb..36904ffa 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -325,7 +325,6 @@ char *input_tab(char *buf, size_t *place, void (*refresh_func)(void), bool *list /* Some functions in global.c. */ const keystruct *first_sc_for(int menu, void (*func)(void)); -int the_code_for(void (*func)(void), int defaultval); size_t shown_entries_for(int menu); const keystruct *get_shortcut(int *keycode); functionptrtype func_from_key(int *keycode);