diff options
| author | fauxpark <fauxpark@gmail.com> | 2019-01-11 10:58:59 +1100 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-01-11 18:32:43 -0800 |
| commit | 3ea7c2a4340d129266ecea2e38185455059274d2 (patch) | |
| tree | 1e0d07ae2ce9e7ef2e0353570eaf146473cd757e | |
| parent | 67adc29aa35719eea2de43bacf9cd5e8b5dfd79e (diff) | |
| download | qmk_firmware-3ea7c2a4340d129266ecea2e38185455059274d2.tar.gz qmk_firmware-3ea7c2a4340d129266ecea2e38185455059274d2.zip | |
Remove empty action_function()
| -rw-r--r-- | keyboards/clueboard/17/keymaps/default/keymap.c | 9 | ||||
| -rw-r--r-- | keyboards/handwired/frenchdev/keymaps/default/keymap.c | 4 | ||||
| -rw-r--r-- | keyboards/meira/meira.c | 26 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/yang/keymap.c | 10 | ||||
| -rw-r--r-- | keyboards/whitefox/keymaps/kim-kim/keymap.c | 21 | ||||
| -rw-r--r-- | keyboards/whitefox/keymaps/matt3o/keymap.c | 21 | ||||
| -rw-r--r-- | tests/basic/keymap.c | 3 |
7 files changed, 0 insertions, 94 deletions
diff --git a/keyboards/clueboard/17/keymaps/default/keymap.c b/keyboards/clueboard/17/keymaps/default/keymap.c index 67fa79c81..53bbbaa9d 100644 --- a/keyboards/clueboard/17/keymaps/default/keymap.c +++ b/keyboards/clueboard/17/keymaps/default/keymap.c | |||
| @@ -51,12 +51,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 51 | KC_TRNS, RGB_SAD, KC_TRNS, RGB_VAD, \ | 51 | KC_TRNS, RGB_SAD, KC_TRNS, RGB_VAD, \ |
| 52 | RGB_MOD, KC_TRNS) | 52 | RGB_MOD, KC_TRNS) |
| 53 | }; | 53 | }; |
| 54 | |||
| 55 | /*enum function_id { | ||
| 56 | };*/ | ||
| 57 | |||
| 58 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 59 | switch (id) { | ||
| 60 | } | ||
| 61 | } | ||
| 62 | |||
diff --git a/keyboards/handwired/frenchdev/keymaps/default/keymap.c b/keyboards/handwired/frenchdev/keymaps/default/keymap.c index 9912a3e98..3d0f1fbfb 100644 --- a/keyboards/handwired/frenchdev/keymaps/default/keymap.c +++ b/keyboards/handwired/frenchdev/keymaps/default/keymap.c | |||
| @@ -354,10 +354,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 354 | return MACRO_NONE; | 354 | return MACRO_NONE; |
| 355 | }; | 355 | }; |
| 356 | 356 | ||
| 357 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 358 | |||
| 359 | } | ||
| 360 | |||
| 361 | void matrix_init_user(void) { | 357 | void matrix_init_user(void) { |
| 362 | } | 358 | } |
| 363 | 359 | ||
diff --git a/keyboards/meira/meira.c b/keyboards/meira/meira.c index 3ff62a080..1d0db5e99 100644 --- a/keyboards/meira/meira.c +++ b/keyboards/meira/meira.c | |||
| @@ -89,32 +89,6 @@ void led_set_kb(uint8_t usb_led) { | |||
| 89 | led_set_user(usb_led); | 89 | led_set_user(usb_led); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | //void action_function(keyrecord_t *event, uint8_t id, uint8_t opt) | ||
| 93 | //{ | ||
| 94 | //#ifdef AUDIO_ENABLE | ||
| 95 | // int8_t sign = 1; | ||
| 96 | //#endif | ||
| 97 | // if(id == LFK_ESC_TILDE){ | ||
| 98 | // // Send ~ on shift-esc | ||
| 99 | // void (*method)(uint8_t) = (event->event.pressed) ? &add_key : &del_key; | ||
| 100 | // uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)); | ||
| 101 | // method(shifted ? KC_GRAVE : KC_ESCAPE); | ||
| 102 | // send_keyboard_report(); | ||
| 103 | // }else if(event->event.pressed){ | ||
| 104 | // switch(id){ | ||
| 105 | // case LFK_CLEAR: | ||
| 106 | // // Go back to default layer | ||
| 107 | // layer_clear(); | ||
| 108 | // break; | ||
| 109 | //#ifdef ISSI_ENABLE | ||
| 110 | // case LFK_LED_TEST: | ||
| 111 | // led_test(); | ||
| 112 | // break; | ||
| 113 | //#endif | ||
| 114 | // } | ||
| 115 | // } | ||
| 116 | //} | ||
| 117 | |||
| 118 | void reset_keyboard_kb(){ | 92 | void reset_keyboard_kb(){ |
| 119 | #ifdef WATCHDOG_ENABLE | 93 | #ifdef WATCHDOG_ENABLE |
| 120 | MCUSR = 0; | 94 | MCUSR = 0; |
diff --git a/keyboards/planck/keymaps/yang/keymap.c b/keyboards/planck/keymaps/yang/keymap.c index e4a7a3312..477eb5031 100644 --- a/keyboards/planck/keymaps/yang/keymap.c +++ b/keyboards/planck/keymaps/yang/keymap.c | |||
| @@ -56,10 +56,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 56 | } | 56 | } |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
| 59 | /*enum function_id { | ||
| 60 | |||
| 61 | };*/ | ||
| 62 | |||
| 63 | const uint16_t PROGMEM fn_actions[] = { | 59 | const uint16_t PROGMEM fn_actions[] = { |
| 64 | [0] = ACTION_LAYER_TAP_KEY(_RGB, KC_SPC), | 60 | [0] = ACTION_LAYER_TAP_KEY(_RGB, KC_SPC), |
| 65 | }; | 61 | }; |
| @@ -81,9 +77,3 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 81 | } | 77 | } |
| 82 | return MACRO_NONE; | 78 | return MACRO_NONE; |
| 83 | }; | 79 | }; |
| 84 | |||
| 85 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 86 | switch (id) { | ||
| 87 | |||
| 88 | } | ||
| 89 | } | ||
diff --git a/keyboards/whitefox/keymaps/kim-kim/keymap.c b/keyboards/whitefox/keymaps/kim-kim/keymap.c index 200098603..459ec6437 100644 --- a/keyboards/whitefox/keymaps/kim-kim/keymap.c +++ b/keyboards/whitefox/keymaps/kim-kim/keymap.c | |||
| @@ -70,24 +70,3 @@ const uint16_t fn_actions[] = { | |||
| 70 | [7] = ACTION_USAGE_CONSUMER(0x1A0), | 70 | [7] = ACTION_USAGE_CONSUMER(0x1A0), |
| 71 | 71 | ||
| 72 | }; | 72 | }; |
| 73 | |||
| 74 | /* custom action function */ | ||
| 75 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 76 | /* | ||
| 77 | (void)opt; | ||
| 78 | switch(id) { | ||
| 79 | case ACTION_LEDS_ALL: | ||
| 80 | if(record->event.pressed) { | ||
| 81 | // signal the LED controller thread | ||
| 82 | chMBPost(&led_mailbox, LED_MSG_GAME_TOGGLE, TIME_IMMEDIATE); | ||
| 83 | } | ||
| 84 | break; | ||
| 85 | case ACTION_LEDS_GAME: | ||
| 86 | if(record->event.pressed) { | ||
| 87 | // signal the LED controller thread | ||
| 88 | chMBPost(&led_mailbox, LED_MSG_ALL_TOGGLE, TIME_IMMEDIATE); | ||
| 89 | } | ||
| 90 | break; | ||
| 91 | } | ||
| 92 | */ | ||
| 93 | } | ||
diff --git a/keyboards/whitefox/keymaps/matt3o/keymap.c b/keyboards/whitefox/keymaps/matt3o/keymap.c index 136ae65fa..76fb72f8e 100644 --- a/keyboards/whitefox/keymaps/matt3o/keymap.c +++ b/keyboards/whitefox/keymaps/matt3o/keymap.c | |||
| @@ -69,24 +69,3 @@ const uint16_t fn_actions[] = { | |||
| 69 | [7] = ACTION_USAGE_CONSUMER(0x1A0), | 69 | [7] = ACTION_USAGE_CONSUMER(0x1A0), |
| 70 | 70 | ||
| 71 | }; | 71 | }; |
| 72 | |||
| 73 | /* custom action function */ | ||
| 74 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 75 | /* | ||
| 76 | (void)opt; | ||
| 77 | switch(id) { | ||
| 78 | case ACTION_LEDS_ALL: | ||
| 79 | if(record->event.pressed) { | ||
| 80 | // signal the LED controller thread | ||
| 81 | chMBPost(&led_mailbox, LED_MSG_GAME_TOGGLE, TIME_IMMEDIATE); | ||
| 82 | } | ||
| 83 | break; | ||
| 84 | case ACTION_LEDS_GAME: | ||
| 85 | if(record->event.pressed) { | ||
| 86 | // signal the LED controller thread | ||
| 87 | chMBPost(&led_mailbox, LED_MSG_ALL_TOGGLE, TIME_IMMEDIATE); | ||
| 88 | } | ||
| 89 | break; | ||
| 90 | } | ||
| 91 | */ | ||
| 92 | } | ||
diff --git a/tests/basic/keymap.c b/tests/basic/keymap.c index 3f97c0a0e..5dd9aaeb6 100644 --- a/tests/basic/keymap.c +++ b/tests/basic/keymap.c | |||
| @@ -41,6 +41,3 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { | |||
| 41 | } | 41 | } |
| 42 | return MACRO_NONE; | 42 | return MACRO_NONE; |
| 43 | }; | 43 | }; |
| 44 | |||
| 45 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 46 | } \ No newline at end of file | ||
