summaryrefslogtreecommitdiff
path: root/keyboard/hbkb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-05 21:20:39 +0900
committertmk <nobody@nowhere>2013-03-05 21:20:39 +0900
commit81d2753ab07890532ea8c4bd6a68de3e5e08ca33 (patch)
tree685ba0477174789f5d64902a5cd96114346aa9d7 /keyboard/hbkb
parent9e9a85c1426650148d0d83c900e432003ff174fb (diff)
downloadqmk_firmware-81d2753ab07890532ea8c4bd6a68de3e5e08ca33.tar.gz
qmk_firmware-81d2753ab07890532ea8c4bd6a68de3e5e08ca33.zip
Remove matrix_key_count() from matrix.h
Diffstat (limited to 'keyboard/hbkb')
-rw-r--r--keyboard/hbkb/matrix.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/keyboard/hbkb/matrix.c b/keyboard/hbkb/matrix.c
index f3a0cde5f3..a24d24b8c3 100644
--- a/keyboard/hbkb/matrix.c
+++ b/keyboard/hbkb/matrix.c
@@ -182,19 +182,6 @@ void matrix_print(void)
}
}
-uint8_t matrix_key_count(void)
-{
- uint8_t count = 0;
- for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
-#if (MATRIX_COLS <= 8)
- count += bitpop(matrix[i]);
-#else
- count += bitpop16(matrix[i]);
-#endif
- }
- return count;
-}
-
#ifdef MATRIX_HAS_GHOST
inline
static bool matrix_has_ghost_in_row(uint8_t row)
@@ -205,7 +192,6 @@ static bool matrix_has_ghost_in_row(uint8_t row)
// ghost exists in case same state as other row
for (uint8_t i=0; i < MATRIX_ROWS; i++) {
- //if (i != row && (matrix[i] & matrix[row]) == matrix[row])
if (i != row && (matrix[i] & matrix[row]))
return true;
}