Browse Source

Remove empty action_function()

pjones-keymap
fauxpark 5 months ago
parent
commit
3ea7c2a434

+ 0
- 9
keyboards/clueboard/17/keymaps/default/keymap.c View File

@@ -51,12 +51,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
51 51
   KC_TRNS,          RGB_SAD,    KC_TRNS, RGB_VAD, \
52 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
-

+ 0
- 4
keyboards/handwired/frenchdev/keymaps/default/keymap.c View File

@@ -354,10 +354,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
354 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 357
 void matrix_init_user(void) {
362 358
 }
363 359
 

+ 0
- 26
keyboards/meira/meira.c View File

@@ -89,32 +89,6 @@ void led_set_kb(uint8_t usb_led) {
89 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 92
 void reset_keyboard_kb(){
119 93
 #ifdef WATCHDOG_ENABLE
120 94
     MCUSR = 0;

+ 0
- 10
keyboards/planck/keymaps/yang/keymap.c View File

@@ -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 59
 const uint16_t PROGMEM fn_actions[] = {
64 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 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
-}

+ 0
- 21
keyboards/whitefox/keymaps/kim-kim/keymap.c View File

@@ -70,24 +70,3 @@ const uint16_t fn_actions[] = {
70 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
-}

+ 0
- 21
keyboards/whitefox/keymaps/matt3o/keymap.c View File

@@ -69,24 +69,3 @@ const uint16_t fn_actions[] = {
69 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
-}

+ 0
- 3
tests/basic/keymap.c View File

@@ -41,6 +41,3 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
41 41
     }
42 42
     return MACRO_NONE;
43 43
 };
44
-
45
-void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
46
-}

Loading…
Cancel
Save