diff options
author | Joel Challis <[email protected]> | 2021-08-25 01:16:59 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-25 01:16:59 +0100 |
commit | a84de5e22be25e2059dfee732f5cca3ec0953a35 (patch) | |
tree | 31202fc9dcf0ff56ead905b234ed0ab364ca7de7 /quantum/keymap_common.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/keymap_common.c')
-rw-r--r-- | quantum/keymap_common.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index 008177bbee..780c71ab9b 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -36,31 +36,6 @@ extern keymap_config_t keymap_config; #include <inttypes.h> -uint8_t extract_mod_bits(uint16_t code) { - switch (code) { - case QK_MODS ... QK_MODS_MAX: - break; - default: - return 0; - } - - uint8_t mods_to_send = 0; - - if (code & QK_RMODS_MIN) { // Right mod flag is set - if (code & QK_LCTL) mods_to_send |= MOD_BIT(KC_RCTL); - if (code & QK_LSFT) mods_to_send |= MOD_BIT(KC_RSFT); - if (code & QK_LALT) mods_to_send |= MOD_BIT(KC_RALT); - if (code & QK_LGUI) mods_to_send |= MOD_BIT(KC_RGUI); - } else { - if (code & QK_LCTL) mods_to_send |= MOD_BIT(KC_LCTL); - if (code & QK_LSFT) mods_to_send |= MOD_BIT(KC_LSFT); - if (code & QK_LALT) mods_to_send |= MOD_BIT(KC_LALT); - if (code & QK_LGUI) mods_to_send |= MOD_BIT(KC_LGUI); - } - - return mods_to_send; -} - /* converts key to action */ action_t action_for_key(uint8_t layer, keypos_t key) { // 16bit keycodes - important |