diff options
| author | fauxpark <fauxpark@gmail.com> | 2019-02-17 03:11:15 +1100 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-02-16 08:11:15 -0800 |
| commit | bbd4b5eb887a9e5065765d2d6f2ac919d81a38c6 (patch) | |
| tree | 353ba8fe0818e921cbf0fb48a9813f1fe23a4bb4 | |
| parent | 3309e91e0b6c7edc0c164e25ff1638c4852b40e7 (diff) | |
| download | qmk_firmware-bbd4b5eb887a9e5065765d2d6f2ac919d81a38c6.tar.gz qmk_firmware-bbd4b5eb887a9e5065765d2d6f2ac919d81a38c6.zip | |
Remove redundant KC_TRNS and KC_NO fillers in layouts (#5142)
| -rw-r--r-- | layouts/community/ergodox/adam/keymap.c | 3 | ||||
| -rw-r--r-- | layouts/community/ergodox/belak/keymap.c | 1 | ||||
| -rw-r--r-- | layouts/community/ergodox/familiar/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/community/ergodox/haegin/keymap.c | 2 | ||||
| -rw-r--r-- | layouts/community/ergodox/meagerfindings/keymap.c | 1 | ||||
| -rw-r--r-- | layouts/community/ergodox/xyverz/keymap.c | 5 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/bakingpy/keymap.c | 1 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/crs/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/ergodoxish/keymap.c | 6 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/grahampheath/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/mindsound/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/symbolic/keymap.c | 6 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/xyverz/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/community/ortho_5x12/xyverz/keymap.c | 4 | ||||
| -rw-r--r-- | layouts/default/numpad_5x4/default_numpad_5x4/keymap.c | 3 | ||||
| -rw-r--r-- | layouts/default/ortho_5x4/default_ortho_5x4/keymap.c | 3 |
17 files changed, 1 insertions, 58 deletions
diff --git a/layouts/community/ergodox/adam/keymap.c b/layouts/community/ergodox/adam/keymap.c index e99e5d453..100bb6819 100644 --- a/layouts/community/ergodox/adam/keymap.c +++ b/layouts/community/ergodox/adam/keymap.c | |||
| @@ -11,9 +11,6 @@ | |||
| 11 | #define SFLOCK 11 // symbols arrows and F keys on F held down | 11 | #define SFLOCK 11 // symbols arrows and F keys on F held down |
| 12 | #define SJLOCK 12 // same as Flock but with fall thru J and mapped to J held down | 12 | #define SJLOCK 12 // same as Flock but with fall thru J and mapped to J held down |
| 13 | 13 | ||
| 14 | #define _______ KC_TRNS | ||
| 15 | #define XXXXXXX KC_NO | ||
| 16 | |||
| 17 | // Sends macro when key is tapped, presses mod when key is held | 14 | // Sends macro when key is tapped, presses mod when key is held |
| 18 | #define tap_mod_macro(record, mod, macro) ( ((record)->event.pressed) ? \ | 15 | #define tap_mod_macro(record, mod, macro) ( ((record)->event.pressed) ? \ |
| 19 | ( ((record)->tap.count <= 0 || (record)->tap.interrupted) ? MACRO(D(mod), END) : MACRO_NONE ) : \ | 16 | ( ((record)->tap.count <= 0 || (record)->tap.interrupted) ? MACRO(D(mod), END) : MACRO_NONE ) : \ |
diff --git a/layouts/community/ergodox/belak/keymap.c b/layouts/community/ergodox/belak/keymap.c index 016cf30b4..bca0dec91 100644 --- a/layouts/community/ergodox/belak/keymap.c +++ b/layouts/community/ergodox/belak/keymap.c | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #include "eeprom.h" | 5 | #include "eeprom.h" |
| 6 | 6 | ||
| 7 | #define LAYER_ON(pos) ((layer_state) & (1<<(pos))) | 7 | #define LAYER_ON(pos) ((layer_state) & (1<<(pos))) |
| 8 | #define _______ KC_TRNS | ||
| 9 | 8 | ||
| 10 | #define EECONFIG_BELAK_MAGIC (uint16_t)0xBE42 | 9 | #define EECONFIG_BELAK_MAGIC (uint16_t)0xBE42 |
| 11 | 10 | ||
diff --git a/layouts/community/ergodox/familiar/keymap.c b/layouts/community/ergodox/familiar/keymap.c index bc513c0cc..b359a91d3 100644 --- a/layouts/community/ergodox/familiar/keymap.c +++ b/layouts/community/ergodox/familiar/keymap.c | |||
| @@ -10,10 +10,6 @@ | |||
| 10 | #define NUMP 3 // numpad | 10 | #define NUMP 3 // numpad |
| 11 | #define ARRW 4 // function, media, arrow keys | 11 | #define ARRW 4 // function, media, arrow keys |
| 12 | 12 | ||
| 13 | // Fillers to make layering more clear | ||
| 14 | #define _______ KC_TRNS | ||
| 15 | #define XXXXXXX KC_NO | ||
| 16 | |||
| 17 | // Tap Dancing | 13 | // Tap Dancing |
| 18 | void dance_lock (qk_tap_dance_state_t *state, void *user_data) { | 14 | void dance_lock (qk_tap_dance_state_t *state, void *user_data) { |
| 19 | if (state->count == 1) { // Press once for NUMLOCK | 15 | if (state->count == 1) { // Press once for NUMLOCK |
diff --git a/layouts/community/ergodox/haegin/keymap.c b/layouts/community/ergodox/haegin/keymap.c index aa017c8ea..fc6ec5762 100644 --- a/layouts/community/ergodox/haegin/keymap.c +++ b/layouts/community/ergodox/haegin/keymap.c | |||
| @@ -9,8 +9,6 @@ | |||
| 9 | #define SYMBOLS 1 // symbols | 9 | #define SYMBOLS 1 // symbols |
| 10 | #define MEDIA 2 // media keys | 10 | #define MEDIA 2 // media keys |
| 11 | 11 | ||
| 12 | #define _______ KC_TRNS | ||
| 13 | |||
| 14 | enum { | 12 | enum { |
| 15 | TD_BSPC = 0 | 13 | TD_BSPC = 0 |
| 16 | }; | 14 | }; |
diff --git a/layouts/community/ergodox/meagerfindings/keymap.c b/layouts/community/ergodox/meagerfindings/keymap.c index 62504f966..f4340b8e1 100644 --- a/layouts/community/ergodox/meagerfindings/keymap.c +++ b/layouts/community/ergodox/meagerfindings/keymap.c | |||
| @@ -42,7 +42,6 @@ enum custom_keycodes { | |||
| 42 | }; | 42 | }; |
| 43 | 43 | ||
| 44 | //Redefine Key Names for Readaibilty | 44 | //Redefine Key Names for Readaibilty |
| 45 | #define XXXXXXX KC_NO | ||
| 46 | #define SCRN_CLIPB LCTL(LGUI(LSFT(KC_4))) | 45 | #define SCRN_CLIPB LCTL(LGUI(LSFT(KC_4))) |
| 47 | #define CHRM_L LALT(LGUI(KC_LEFT)) //Move left one tab in Chrome | 46 | #define CHRM_L LALT(LGUI(KC_LEFT)) //Move left one tab in Chrome |
| 48 | #define CHRM_R LALT(LGUI(KC_RIGHT)) //Move right one tab in Chrome | 47 | #define CHRM_R LALT(LGUI(KC_RIGHT)) //Move right one tab in Chrome |
diff --git a/layouts/community/ergodox/xyverz/keymap.c b/layouts/community/ergodox/xyverz/keymap.c index fe9080c2d..eeeded47f 100644 --- a/layouts/community/ergodox/xyverz/keymap.c +++ b/layouts/community/ergodox/xyverz/keymap.c | |||
| @@ -31,11 +31,6 @@ extern keymap_config_t keymap_config; | |||
| 31 | #define QWERTY M(_QW) | 31 | #define QWERTY M(_QW) |
| 32 | #define COLEMAK M(_CM) | 32 | #define COLEMAK M(_CM) |
| 33 | 33 | ||
| 34 | // Fillers to make layering more clear | ||
| 35 | #define _______ KC_TRNS | ||
| 36 | #define XXXXXXX KC_NO | ||
| 37 | |||
| 38 | |||
| 39 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 40 | 35 | ||
| 41 | /* Layer 0 : Dvorak | 36 | /* Layer 0 : Dvorak |
diff --git a/layouts/community/ortho_4x12/bakingpy/keymap.c b/layouts/community/ortho_4x12/bakingpy/keymap.c index 06e4a589c..71672d051 100644 --- a/layouts/community/ortho_4x12/bakingpy/keymap.c +++ b/layouts/community/ortho_4x12/bakingpy/keymap.c | |||
| @@ -21,7 +21,6 @@ enum custom_keycodes { | |||
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | #define KC_ KC_TRNS | 23 | #define KC_ KC_TRNS |
| 24 | #define _______ KC_TRNS | ||
| 25 | 24 | ||
| 26 | #define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen | 25 | #define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen |
| 27 | #define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen | 26 | #define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen |
diff --git a/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c b/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c index 218ff9374..c8da7f589 100644 --- a/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c +++ b/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c | |||
| @@ -20,10 +20,6 @@ enum custom_keycodes { | |||
| 20 | ADJUST, | 20 | ADJUST, |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | // Fillers to make layering more clear | ||
| 24 | #define _______ KC_TRNS | ||
| 25 | #define XXXXXXX KC_NO | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 28 | 24 | ||
| 29 | /* Colemak | 25 | /* Colemak |
diff --git a/layouts/community/ortho_4x12/crs/keymap.c b/layouts/community/ortho_4x12/crs/keymap.c index f9c72f254..2ec2ffba9 100644 --- a/layouts/community/ortho_4x12/crs/keymap.c +++ b/layouts/community/ortho_4x12/crs/keymap.c | |||
| @@ -33,10 +33,6 @@ enum custom_keycodes { | |||
| 33 | EXT_PLV | 33 | EXT_PLV |
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | // Fillers to make layering more clear | ||
| 37 | #define _______ KC_TRNS | ||
| 38 | #define XXXXXXX KC_NO | ||
| 39 | |||
| 40 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 41 | 37 | ||
| 42 | /* Qwerty | 38 | /* Qwerty |
diff --git a/layouts/community/ortho_4x12/ergodoxish/keymap.c b/layouts/community/ortho_4x12/ergodoxish/keymap.c index 49600aa33..7c844c6b3 100644 --- a/layouts/community/ortho_4x12/ergodoxish/keymap.c +++ b/layouts/community/ortho_4x12/ergodoxish/keymap.c | |||
| @@ -24,10 +24,6 @@ enum custom_keycodes { | |||
| 24 | ADJUST, | 24 | ADJUST, |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | // Fillers to make layering more clear | ||
| 28 | #define _______ KC_TRNS | ||
| 29 | #define XXXXXXX KC_NO | ||
| 30 | |||
| 31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 32 | 28 | ||
| 33 | /* Qwerty | 29 | /* Qwerty |
| @@ -211,4 +207,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 211 | break; | 207 | break; |
| 212 | } | 208 | } |
| 213 | return true; | 209 | return true; |
| 214 | } \ No newline at end of file | 210 | } |
diff --git a/layouts/community/ortho_4x12/grahampheath/keymap.c b/layouts/community/ortho_4x12/grahampheath/keymap.c index 0b84b66eb..7b35c52e7 100644 --- a/layouts/community/ortho_4x12/grahampheath/keymap.c +++ b/layouts/community/ortho_4x12/grahampheath/keymap.c | |||
| @@ -54,10 +54,6 @@ enum custom_keycodes { | |||
| 54 | #define HYPR_1 HYPR(KC_EXLM) // Send Hyper + !. | 54 | #define HYPR_1 HYPR(KC_EXLM) // Send Hyper + !. |
| 55 | #define HYPR_2 HYPR(KC_AT) // Send Hyper + @. | 55 | #define HYPR_2 HYPR(KC_AT) // Send Hyper + @. |
| 56 | 56 | ||
| 57 | // Fillers to make layering more clear | ||
| 58 | #define _______ KC_TRNS | ||
| 59 | #define XXXXXXX KC_NO | ||
| 60 | |||
| 61 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 57 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 62 | 58 | ||
| 63 | /* Qwerty | 59 | /* Qwerty |
diff --git a/layouts/community/ortho_4x12/mindsound/keymap.c b/layouts/community/ortho_4x12/mindsound/keymap.c index 2c9ceaf69..03b0486c5 100644 --- a/layouts/community/ortho_4x12/mindsound/keymap.c +++ b/layouts/community/ortho_4x12/mindsound/keymap.c | |||
| @@ -33,10 +33,6 @@ const uint8_t flicker_max_levels = 7; | |||
| 33 | uint8_t flicker_restore_level = 0; | 33 | uint8_t flicker_restore_level = 0; |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | // Fillers to make layering more clear | ||
| 37 | #define _______ KC_TRNS | ||
| 38 | #define XXXXXXX KC_NO | ||
| 39 | |||
| 40 | #define LOWER MO(_LOWER) | 36 | #define LOWER MO(_LOWER) |
| 41 | #define RAISE MO(_RAISE) | 37 | #define RAISE MO(_RAISE) |
| 42 | 38 | ||
diff --git a/layouts/community/ortho_4x12/symbolic/keymap.c b/layouts/community/ortho_4x12/symbolic/keymap.c index d4c089236..1e5494d96 100644 --- a/layouts/community/ortho_4x12/symbolic/keymap.c +++ b/layouts/community/ortho_4x12/symbolic/keymap.c | |||
| @@ -19,12 +19,6 @@ enum custom_keycodes { | |||
| 19 | R_RAISE | 19 | R_RAISE |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | |||
| 23 | // Fillers to make layering more clear | ||
| 24 | #define _______ KC_TRNS | ||
| 25 | #define XXXXXXX KC_NO | ||
| 26 | |||
| 27 | |||
| 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 29 | 23 | ||
| 30 | /* Qwerty | 24 | /* Qwerty |
diff --git a/layouts/community/ortho_4x12/xyverz/keymap.c b/layouts/community/ortho_4x12/xyverz/keymap.c index 72ddbacf8..681dafacd 100644 --- a/layouts/community/ortho_4x12/xyverz/keymap.c +++ b/layouts/community/ortho_4x12/xyverz/keymap.c | |||
| @@ -24,10 +24,6 @@ enum custom_keycodes { | |||
| 24 | ADJUST | 24 | ADJUST |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | // Fillers to make layering more clear | ||
| 28 | #define _______ KC_TRNS | ||
| 29 | #define XXXXXXX KC_NO | ||
| 30 | |||
| 31 | // Aliases to keep the keymap tidy | 27 | // Aliases to keep the keymap tidy |
| 32 | #define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped. | 28 | #define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped. |
| 33 | #define RGB_SWR RGB_M_SW // Swirl Animation alias | 29 | #define RGB_SWR RGB_M_SW // Swirl Animation alias |
diff --git a/layouts/community/ortho_5x12/xyverz/keymap.c b/layouts/community/ortho_5x12/xyverz/keymap.c index 23a456e6d..bbf1d7bb0 100644 --- a/layouts/community/ortho_5x12/xyverz/keymap.c +++ b/layouts/community/ortho_5x12/xyverz/keymap.c | |||
| @@ -24,10 +24,6 @@ enum custom_keycodes { | |||
| 24 | ADJUST, | 24 | ADJUST, |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | // Fillers to make layering more clear | ||
| 28 | #define _______ KC_TRNS | ||
| 29 | #define XXXXXXX KC_NO | ||
| 30 | |||
| 31 | // Aliases to keep the keymap tidy | 27 | // Aliases to keep the keymap tidy |
| 32 | #define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped. | 28 | #define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped. |
| 33 | #define RGB_SWR RGB_M_SW // Swirl Animation alias | 29 | #define RGB_SWR RGB_M_SW // Swirl Animation alias |
diff --git a/layouts/default/numpad_5x4/default_numpad_5x4/keymap.c b/layouts/default/numpad_5x4/default_numpad_5x4/keymap.c index 1d68fb2f8..0e913248f 100644 --- a/layouts/default/numpad_5x4/default_numpad_5x4/keymap.c +++ b/layouts/default/numpad_5x4/default_numpad_5x4/keymap.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include QMK_KEYBOARD_H |
| 2 | 2 | ||
| 3 | #define _______ KC_TRNS | ||
| 4 | #define XXXXXXX KC_NO | ||
| 5 | |||
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 7 | [0] = LAYOUT_numpad_5x4( | 4 | [0] = LAYOUT_numpad_5x4( |
| 8 | TG(1), KC_PSLS, KC_PAST, KC_PMNS, \ | 5 | TG(1), KC_PSLS, KC_PAST, KC_PMNS, \ |
diff --git a/layouts/default/ortho_5x4/default_ortho_5x4/keymap.c b/layouts/default/ortho_5x4/default_ortho_5x4/keymap.c index 061f06c38..39d397d90 100644 --- a/layouts/default/ortho_5x4/default_ortho_5x4/keymap.c +++ b/layouts/default/ortho_5x4/default_ortho_5x4/keymap.c | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include QMK_KEYBOARD_H |
| 2 | 2 | ||
| 3 | #define _______ KC_TRNS | ||
| 4 | #define XXXXXXX KC_NO | ||
| 5 | |||
| 6 | enum custom_keycodes { | 3 | enum custom_keycodes { |
| 7 | KC_P00 = SAFE_RANGE | 4 | KC_P00 = SAFE_RANGE |
| 8 | }; | 5 | }; |
