Skip to content

Commit f218a38

Browse files
committed
core: Remove unused warning. Fix tmk_keyboard/#293
1 parent cecc807 commit f218a38

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

common/action_tapping.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ static bool process_tapping(keyrecord_t *record);
3030
static bool waiting_buffer_enq(keyrecord_t record);
3131
static void waiting_buffer_clear(void);
3232
static bool waiting_buffer_typed(keyevent_t event);
33-
static bool waiting_buffer_has_anykey_pressed(void);
3433
static void waiting_buffer_scan_tap(void);
3534
static void debug_tapping_key(void);
3635
static void debug_waiting_buffer(void);
@@ -324,14 +323,6 @@ bool waiting_buffer_typed(keyevent_t event)
324323
return false;
325324
}
326325

327-
bool waiting_buffer_has_anykey_pressed(void)
328-
{
329-
for (uint8_t i = waiting_buffer_tail; i != waiting_buffer_head; i = (i + 1) % WAITING_BUFFER_SIZE) {
330-
if (waiting_buffer[i].event.pressed) return true;
331-
}
332-
return false;
333-
}
334-
335326
/* scan buffer for tapping */
336327
void waiting_buffer_scan_tap(void)
337328
{

0 commit comments

Comments
 (0)