Skip to content

Commit 87628c9

Browse files
committed
Revert "Make action_for_key a weak symbol"
This reverts commit c17b8a599e3ec3b0a327bcd66082541f2517ab30. The commit made compile error and its intention is unclear.
1 parent 3c0a1ba commit 87628c9

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

common/action.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ void action_exec(keyevent_t event);
5151

5252
/* action for key */
5353
action_t action_for_key(uint8_t layer, keypos_t key);
54-
action_t action_for_key_default(uint8_t layer, keypos_t key);
5554

5655
/* macro */
5756
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt);

common/keymap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ static action_t keycode_to_action(uint8_t keycode);
2727

2828

2929
/* converts key to action */
30-
__attribute__((__weak__))
3130
action_t action_for_key(uint8_t layer, keypos_t key)
3231
{
33-
return action_for_key_default(layer, key);
34-
}
35-
36-
action_t action_for_key_default(uint8_t layer, keypos_t key)
3732
uint8_t keycode = keymap_key_to_keycode(layer, key);
3833
switch (keycode) {
3934
case KC_FN0 ... KC_FN31:

0 commit comments

Comments
 (0)