Skip to content

Commit

Permalink
Remove redundant code implementation of keyboard_post_init_user
Browse files Browse the repository at this point in the history
#7046

users/yet-another-developer/leader.c
```
  static bool has_ran_yet;
  if (!has_ran_yet) {
    has_ran_yet = true;
    startup_user();
```
Comment for lines +11  – +14
 @drashna: Not needed anymore. You can use keyboard_post_init_user now.

Signed-off-by: Developer <anotherdeveloper@icloud.com>
  • Loading branch information
yet-another-developer committed Oct 17, 2019
1 parent 1695b00 commit 6739ce8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions users/yet-another-developer/leader.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ LEADER_EXTERNS();

// Runs constantly in the background, in a loop.
void matrix_scan_user(void){
static bool has_ran_yet;
if (!has_ran_yet) {
has_ran_yet = true;
startup_user();
}

#ifdef TAP_DANCE_ENABLE // Run Diablo 3 macro checking code.
// run_diablo_macro_check();
Expand Down
5 changes: 0 additions & 5 deletions users/yet-another-developer/yet-another-developer.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ void matrix_scan_keymap(void) {}

__attribute__ ((weak))
void matrix_scan_user(void){
static bool has_ran_yet;
if (!has_ran_yet) {
has_ran_yet = true;
startup_user();
}

#ifdef TAP_DANCE_ENABLE // Run Diablo 3 macro checking code.
// run_diablo_macro_check();
Expand Down

0 comments on commit 6739ce8

Please sign in to comment.