aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xd75
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-01-11 20:25:45 +1100
committerGitHub <noreply@github.com>2021-01-11 01:25:45 -0800
commit415d683ea71d516dd2a7d4f2f8e43eb4e3e993cb (patch)
tree71c028b6b7dc0ef56a6f25fdd4f4de6376ee1d69 /keyboards/xd75
parent5ee3cb385fd085bbe76e98e8c208ca2ac7ea4871 (diff)
downloadqmk_firmware-415d683ea71d516dd2a7d4f2f8e43eb4e3e993cb.tar.gz
qmk_firmware-415d683ea71d516dd2a7d4f2f8e43eb4e3e993cb.zip
Remove unused `action_get_macro()` usages in user files (#11165)
Diffstat (limited to 'keyboards/xd75')
-rw-r--r--keyboards/xd75/keymaps/boy_314/keymap.c19
-rw-r--r--keyboards/xd75/keymaps/c4software_bepo/keymap.c18
-rw-r--r--keyboards/xd75/keymaps/dyn_macro_tap_dance/keymap.c18
-rw-r--r--keyboards/xd75/keymaps/kim-kim-xd73/keymap.c18
-rw-r--r--keyboards/xd75/keymaps/kim-kim/keymap.c18
-rw-r--r--keyboards/xd75/keymaps/kloki/keymap.c18
6 files changed, 0 insertions, 109 deletions
diff --git a/keyboards/xd75/keymaps/boy_314/keymap.c b/keyboards/xd75/keymaps/boy_314/keymap.c
index 01c3a3626..89d6569dd 100644
--- a/keyboards/xd75/keymaps/boy_314/keymap.c
+++ b/keyboards/xd75/keymaps/boy_314/keymap.c
@@ -125,25 +125,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
125 ) 125 )
126}; 126};
127 127
128
129const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
130{
131 // MACRODOWN only works in this function
132 switch(id) {
133 case 0:
134 if (record->event.pressed) {
135 register_code(KC_RSFT);
136 #ifdef BACKLIGHT_ENABLE
137 backlight_step();
138 #endif
139 } else {
140 unregister_code(KC_RSFT);
141 }
142 break;
143 }
144 return MACRO_NONE;
145};
146
147void matrix_init_user(void) { 128void matrix_init_user(void) {
148 if (!(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK))) { 129 if (!(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK))) {
149 register_code(KC_NUMLOCK); 130 register_code(KC_NUMLOCK);
diff --git a/keyboards/xd75/keymaps/c4software_bepo/keymap.c b/keyboards/xd75/keymaps/c4software_bepo/keymap.c
index 0eb202dd3..4571033c0 100644
--- a/keyboards/xd75/keymaps/c4software_bepo/keymap.c
+++ b/keyboards/xd75/keymaps/c4software_bepo/keymap.c
@@ -66,21 +66,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
66 RESET, KC_TRNS, MO(_FN), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_0, KC_KP_0, KC_PDOT, MO(_FN), KC_TRNS, KC_END, KC_TRNS 66 RESET, KC_TRNS, MO(_FN), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_0, KC_KP_0, KC_PDOT, MO(_FN), KC_TRNS, KC_END, KC_TRNS
67 ) 67 )
68}; 68};
69
70const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
71{
72 // MACRODOWN only works in this function
73 switch(id) {
74 case 0:
75 if (record->event.pressed) {
76 register_code(KC_RSFT);
77 #ifdef BACKLIGHT_ENABLE
78 backlight_step();
79 #endif
80 } else {
81 unregister_code(KC_RSFT);
82 }
83 break;
84 }
85 return MACRO_NONE;
86};
diff --git a/keyboards/xd75/keymaps/dyn_macro_tap_dance/keymap.c b/keyboards/xd75/keymaps/dyn_macro_tap_dance/keymap.c
index 220c85dde..679684976 100644
--- a/keyboards/xd75/keymaps/dyn_macro_tap_dance/keymap.c
+++ b/keyboards/xd75/keymaps/dyn_macro_tap_dance/keymap.c
@@ -113,21 +113,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
113 _______, _______, RGB_TOG, MO(_FN), RGB_RMOD,RGB_MOD, KC_P0, _______, KC_PDOT, KC_PENT, KC_PENT, MO(_FN), _______, _______, _______ 113 _______, _______, RGB_TOG, MO(_FN), RGB_RMOD,RGB_MOD, KC_P0, _______, KC_PDOT, KC_PENT, KC_PENT, MO(_FN), _______, _______, _______
114 ) 114 )
115}; 115};
116
117const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
118{
119 // MACRODOWN only works in this function
120 switch(id) {
121 case 0:
122 if (record->event.pressed) {
123 register_code(KC_RSFT);
124 #ifdef BACKLIGHT_ENABLE
125 backlight_step();
126 #endif
127 } else {
128 unregister_code(KC_RSFT);
129 }
130 break;
131 }
132 return MACRO_NONE;
133};
diff --git a/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c b/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c
index edbcfe97b..fdcc47cab 100644
--- a/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c
+++ b/keyboards/xd75/keymaps/kim-kim-xd73/keymap.c
@@ -115,21 +115,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
115 ) 115 )
116 116
117}; 117};
118
119const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
120{
121 // MACRODOWN only works in this function
122 switch(id) {
123 case 0:
124 if (record->event.pressed) {
125 #ifdef BACKLIGHT_ENABLE
126
127 #endif
128 } else {
129 #ifdef BACKLIGHT_ENABLE
130
131 #endif
132 }
133 }
134 return MACRO_NONE;
135};
diff --git a/keyboards/xd75/keymaps/kim-kim/keymap.c b/keyboards/xd75/keymaps/kim-kim/keymap.c
index 0557074dc..486a3743a 100644
--- a/keyboards/xd75/keymaps/kim-kim/keymap.c
+++ b/keyboards/xd75/keymaps/kim-kim/keymap.c
@@ -115,21 +115,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
115 ) 115 )
116 116
117}; 117};
118
119const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
120{
121 // MACRODOWN only works in this function
122 switch(id) {
123 case 0:
124 if (record->event.pressed) {
125 #ifdef BACKLIGHT_ENABLE
126
127 #endif
128 } else {
129 #ifdef BACKLIGHT_ENABLE
130
131 #endif
132 }
133 }
134 return MACRO_NONE;
135};
diff --git a/keyboards/xd75/keymaps/kloki/keymap.c b/keyboards/xd75/keymaps/kloki/keymap.c
index d9a67e8b7..a63001934 100644
--- a/keyboards/xd75/keymaps/kloki/keymap.c
+++ b/keyboards/xd75/keymaps/kloki/keymap.c
@@ -65,24 +65,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
65 ) 65 )
66}; 66};
67 67
68const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
69{
70 // MACRODOWN only works in this function
71 switch(id) {
72 case 0:
73 if (record->event.pressed) {
74 register_code(KC_RSFT);
75 #ifdef BACKLIGHT_ENABLE
76 backlight_step();
77 #endif
78 } else {
79 unregister_code(KC_RSFT);
80 }
81 break;
82 }
83 return MACRO_NONE;
84};
85
86bool CTRLDOWN = false; 68bool CTRLDOWN = false;
87bool WINDOWN = false; 69bool WINDOWN = false;
88bool SHIFTDOWN = false; 70bool SHIFTDOWN = false;