Skip to content

Commit 54e68b0

Browse files
committed
hooks: Remove led_restore_hook
1 parent e73cfe5 commit 54e68b0

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

common/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3333
#include "led.h"
3434
#include "command.h"
3535
#include "backlight.h"
36-
#include "hooks.h"
3736

3837
#ifdef MOUSEKEY_ENABLE
3938
#include "mousekey.h"
@@ -66,6 +65,7 @@ static void switch_default_layer(uint8_t layer);
6665

6766
command_state_t command_state = ONESHOT;
6867

68+
6969
bool command_proc(uint8_t code)
7070
{
7171
switch (command_state) {
@@ -189,7 +189,7 @@ static bool command_common(uint8_t code)
189189
// test breathing sleep LED
190190
print("Sleep LED test\n");
191191
sleep_led_toggle();
192-
led_restore_hook(host_keyboard_leds());
192+
led_set(host_keyboard_leds());
193193
break;
194194
#endif
195195
#ifdef BOOTMAGIC_ENABLE

common/hooks.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ void led_update_hook(uint8_t led_status) {
4848
keyboard_set_leds(led_status);
4949
}
5050

51-
/* Called when indicator LEDs need updating from firmware. */
52-
/* Default behaviour: calls led_set (for compatibility). */
53-
void led_restore_hook(uint8_t led_status);
54-
__attribute__((weak))
55-
void led_restore_hook(uint8_t led_status) {
56-
led_set(led_status);
57-
}
58-
5951
/* Called once, on checking the bootmagic combos. */
6052
/* Default behaviour: do nothing. */
6153
__attribute__((weak))

common/hooks.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,4 @@ void layer_change_hook(uint8_t layer_state);
8181
/* Default behaviour: calls led_set (for compatibility). */
8282
void led_update_hook(uint8_t led_status);
8383

84-
/* Called when indicator LEDs need updating from firmware. */
85-
/* Default behaviour: calls led_set (for compatibility). */
86-
void led_restore_hook(uint8_t led_status);
87-
8884
#endif /* _HOOKS_H_ */

0 commit comments

Comments
 (0)