diff options
author | Ryan <fauxpark@gmail.com> | 2022-03-10 23:18:07 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 12:18:07 +0000 |
commit | bd70f5261cbb7fd4700bf9876da94c9661dadf63 (patch) | |
tree | e88eb58a89650625674cdd779794aec957f4522e /keyboards/converter | |
parent | dc8db6551d2d11534920d1d723d06a99c1b93071 (diff) | |
download | qmk_firmware-bd70f5261cbb7fd4700bf9876da94c9661dadf63.tar.gz qmk_firmware-bd70f5261cbb7fd4700bf9876da94c9661dadf63.zip |
Remove `matrix_key_count()` (#16603)
* Remove `matrix_key_count()`
* Remove `matrix_bitpop()`
Diffstat (limited to 'keyboards/converter')
-rw-r--r-- | keyboards/converter/ibm_terminal/matrix.c | 1 | ||||
-rw-r--r-- | keyboards/converter/palm_usb/matrix.c | 9 | ||||
-rw-r--r-- | keyboards/converter/sun_usb/matrix.c | 9 | ||||
-rw-r--r-- | keyboards/converter/usb_usb/custom_matrix.cpp | 12 |
4 files changed, 0 insertions, 31 deletions
diff --git a/keyboards/converter/ibm_terminal/matrix.c b/keyboards/converter/ibm_terminal/matrix.c index caa0a38051..3d6736a0cc 100644 --- a/keyboards/converter/ibm_terminal/matrix.c +++ b/keyboards/converter/ibm_terminal/matrix.c @@ -27,7 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define print_matrix_row(row) print_bin_reverse8(matrix_get_row(row)) #define print_matrix_header() print("\nr/c 01234567\n") -#define matrix_bitpop(i) bitpop(matrix[i]) #define ROW_SHIFTER ((uint8_t)1) diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 010fd56c79..28d4b87d83 100644 --- a/keyboards/converter/palm_usb/matrix.c +++ b/keyboards/converter/palm_usb/matrix.c @@ -379,12 +379,3 @@ void matrix_print(void) print("\n"); } } - -uint8_t matrix_key_count(void) -{ - uint8_t count = 0; - for (uint8_t i = 0; i < MATRIX_ROWS; i++) { - count += bitpop(matrix[i]); - } - return count; -} diff --git a/keyboards/converter/sun_usb/matrix.c b/keyboards/converter/sun_usb/matrix.c index e28d165d52..35ec391024 100644 --- a/keyboards/converter/sun_usb/matrix.c +++ b/keyboards/converter/sun_usb/matrix.c @@ -179,12 +179,3 @@ void matrix_print(void) print("\n"); } } - -uint8_t matrix_key_count(void) -{ - uint8_t count = 0; - for (uint8_t i = 0; i < MATRIX_ROWS; i++) { - count += bitpop(matrix[i]); - } - return count; -} diff --git a/keyboards/converter/usb_usb/custom_matrix.cpp b/keyboards/converter/usb_usb/custom_matrix.cpp index 265fb2c68d..00b5bc5053 100644 --- a/keyboards/converter/usb_usb/custom_matrix.cpp +++ b/keyboards/converter/usb_usb/custom_matrix.cpp @@ -225,18 +225,6 @@ extern "C" return row_bits; } - uint8_t matrix_key_count(void) { - uint8_t count = 0; - - count += bitpop(local_keyboard_report.mods); - for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { - if (IS_ANY(local_keyboard_report.keys[i])) { - count++; - } - } - return count; - } - void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < matrix_rows(); row++) { |