]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
core: Remove unused warning. Fix tmk_keyboard/#293
authortmk <hasu@tmk-kbd.com>
Tue, 26 Jan 2016 23:14:44 +0000 (08:14 +0900)
committertmk <hasu@tmk-kbd.com>
Tue, 26 Jan 2016 23:14:44 +0000 (08:14 +0900)
tmk_core/common/action_tapping.c

index 826c2330966a00050565b1358e6ee43f0baa0814..a74eb1061d5371c88d4e43ed97ed875b34f07c6a 100644 (file)
@@ -30,7 +30,6 @@ static bool process_tapping(keyrecord_t *record);
 static bool waiting_buffer_enq(keyrecord_t record);
 static void waiting_buffer_clear(void);
 static bool waiting_buffer_typed(keyevent_t event);
-static bool waiting_buffer_has_anykey_pressed(void);
 static void waiting_buffer_scan_tap(void);
 static void debug_tapping_key(void);
 static void debug_waiting_buffer(void);
@@ -324,14 +323,6 @@ bool waiting_buffer_typed(keyevent_t event)
     return false;
 }
 
-bool waiting_buffer_has_anykey_pressed(void)
-{
-    for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) {
-        if (waiting_buffer[i].event.pressed) return true;
-    }
-    return false;
-}
-
 /* scan buffer for tapping */
 void waiting_buffer_scan_tap(void)
 {