diff options
author | Joel Challis <git@zvecr.com> | 2021-08-25 01:16:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 01:16:59 +0100 |
commit | a84de5e22be25e2059dfee732f5cca3ec0953a35 (patch) | |
tree | 31202fc9dcf0ff56ead905b234ed0ab364ca7de7 /quantum/action.c | |
parent | 3855713ca0a9513c51fe70e61032d7ea89fa7e87 (diff) | |
download | qmk_firmware-a84de5e22be25e2059dfee732f5cca3ec0953a35.tar.gz qmk_firmware-a84de5e22be25e2059dfee732f5cca3ec0953a35.zip |
Revert 14083 && 14144 (#14150)
* Revert "Short term bodge for firmware size bloat (#14144)"
This reverts commit a8d65473461c337fb1e168d907bfb8c3ac8fdbd0.
* Revert "Tidy up quantum.c now some of tmk_core has been merged (#14083)"
This reverts commit c4dbf4bf0118dd785802861beb247433b5b7411d.
Diffstat (limited to 'quantum/action.c')
-rw-r--r-- | quantum/action.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/quantum/action.c b/quantum/action.c index ec9fcd9c9..d19fd2a04 100644 --- a/quantum/action.c +++ b/quantum/action.c | |||
@@ -960,34 +960,6 @@ void unregister_weak_mods(uint8_t mods) { | |||
960 | } | 960 | } |
961 | } | 961 | } |
962 | 962 | ||
963 | static void do_code16(uint16_t code, void (*f)(uint8_t)) { f(extract_mod_bits(code)); } | ||
964 | |||
965 | void register_code16(uint16_t code) { | ||
966 | if (IS_MOD(code) || code == KC_NO) { | ||
967 | do_code16(code, register_mods); | ||
968 | } else { | ||
969 | do_code16(code, register_weak_mods); | ||
970 | } | ||
971 | register_code(code); | ||
972 | } | ||
973 | |||
974 | void unregister_code16(uint16_t code) { | ||
975 | unregister_code(code); | ||
976 | if (IS_MOD(code) || code == KC_NO) { | ||
977 | do_code16(code, unregister_mods); | ||
978 | } else { | ||
979 | do_code16(code, unregister_weak_mods); | ||
980 | } | ||
981 | } | ||
982 | |||
983 | void tap_code16(uint16_t code) { | ||
984 | register_code16(code); | ||
985 | #if TAP_CODE_DELAY > 0 | ||
986 | wait_ms(TAP_CODE_DELAY); | ||
987 | #endif | ||
988 | unregister_code16(code); | ||
989 | } | ||
990 | |||
991 | /** \brief Utilities for actions. (FIXME: Needs better description) | 963 | /** \brief Utilities for actions. (FIXME: Needs better description) |
992 | * | 964 | * |
993 | * FIXME: Needs documentation. | 965 | * FIXME: Needs documentation. |