Remove useless "ifdef KEYBOARD_*" (#20078)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan
2023-03-16 20:18:33 +11:00
committed by GitHub
parent 72da3ee63e
commit 9dbee3e23d
768 changed files with 194 additions and 6991 deletions

View File

@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "convolution.h"
#include "quantum.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {

View File

@@ -1,22 +0,0 @@
/* Copyright 2022 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_convolution_rev1
#include "rev1.h"
#endif

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "convolution.h"
#include "quantum.h"
#define LAYOUT_65xt( \

View File

@@ -1,17 +0,0 @@
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dsp40.h"

View File

@@ -1,21 +0,0 @@
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifdef KEYBOARD_keebio_dsp40_rev1
#include "rev1.h"
#endif

View File

@@ -15,7 +15,6 @@
*/
#pragma once
#include "dsp40.h"
#include "quantum.h"
#define LAYOUT_ortho_4x12( \

View File

@@ -1,17 +0,0 @@
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "foldkb.h"

View File

@@ -1,23 +0,0 @@
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_foldkb_rev1
#include "rev1.h"
#endif

View File

@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "foldkb.h"
#include "rev1.h"
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "foldkb.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1 +0,0 @@
#include "fourier.h"

View File

@@ -1,9 +1,5 @@
#pragma once
#ifdef KEYBOARD_fourier_rev1
#include "rev1.h"
#endif
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1 +0,0 @@
#include "iris.h"

View File

@@ -1,26 +0,0 @@
#pragma once
#if defined(KEYBOARD_keebio_iris_rev1)
#include "rev1.h"
#elif defined(KEYBOARD_keebio_iris_rev1_led)
#include "rev1_led.h"
#elif defined(KEYBOARD_keebio_iris_rev2)
#include "rev2.h"
#elif defined(KEYBOARD_keebio_iris_rev3)
#include "rev3.h"
#elif defined(KEYBOARD_keebio_iris_rev4)
#include "rev4.h"
#elif defined(KEYBOARD_keebio_iris_rev5)
#include "rev5.h"
#elif defined(KEYBOARD_keebio_iris_rev6)
#include "rev6.h"
#elif defined(KEYBOARD_keebio_iris_rev6a)
#include "rev6a.h"
#elif defined(KEYBOARD_keebio_iris_rev6b)
#include "rev6b.h"
#elif defined(KEYBOARD_keebio_iris_rev7)
#include "rev7.h"
#endif
#include "quantum.h"
#include "via.h"

View File

@@ -1,7 +1,5 @@
#pragma once
#include "iris.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1,7 +1,5 @@
#pragma once
#include "iris.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1,7 +1,5 @@
#pragma once
#include "iris.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1,6 +1,5 @@
#pragma once
#include "iris.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1,6 +1,5 @@
#pragma once
#include "iris.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "iris.h"
#include "quantum.h"

View File

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "iris.h"
#include "quantum.h"

View File

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "iris.h"
#include "quantum.h"

View File

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "iris.h"
#include "quantum.h"

View File

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "iris.h"
#include "quantum.h"

View File

@@ -1 +0,0 @@
#include "kbo5000.h"

View File

@@ -1,7 +0,0 @@
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_kbo5000_rev1
#include "rev1.h"
#endif

View File

@@ -1,4 +1,4 @@
#include "kbo5000.h"
#include "rev1.h"
#include "split_util.h"
void matrix_init_kb(void) {

View File

@@ -1,6 +1,5 @@
#pragma once
#include "kbo5000.h"
#include "quantum.h"
#define LAYOUT_ansi( \

View File

@@ -1,4 +1,4 @@
#include "levinson.h"
#include "quantum.h"
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))

View File

@@ -1,11 +0,0 @@
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_levinson_rev1
#include "rev1.h"
#elif KEYBOARD_keebio_levinson_rev2
#include "rev2.h"
#elif KEYBOARD_keebio_levinson_rev3
#include "rev3.h"
#endif

View File

@@ -1 +0,0 @@
#include "levinson.h"

View File

@@ -1,7 +1,5 @@
#pragma once
#include "levinson.h"
#include "quantum.h"
#ifndef FLIP_HALF

View File

@@ -1,4 +1,4 @@
#include "levinson.h"
#include "rev2.h"
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE

View File

@@ -1,7 +1,5 @@
#pragma once
#include "levinson.h"
#include "quantum.h"
#ifndef FLIP_HALF

View File

@@ -1,4 +1,4 @@
#include "levinson.h"
#include "rev3.h"
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE

View File

@@ -1,7 +1,5 @@
#pragma once
#include "levinson.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1 +0,0 @@
#include "nyquist.h"

View File

@@ -1,13 +0,0 @@
#pragma once
#ifdef KEYBOARD_keebio_nyquist_rev1
#include "rev1.h"
#endif
#ifdef KEYBOARD_keebio_nyquist_rev2
#include "rev2.h"
#endif
#ifdef KEYBOARD_keebio_nyquist_rev3
#include "rev3.h"
#endif
#include "quantum.h"

View File

@@ -1 +0,0 @@
#include "rev1.h"

View File

@@ -1,7 +1,5 @@
#pragma once
#include "nyquist.h"
#include "quantum.h"
#ifndef FLIP_HALF

View File

@@ -1,7 +1,5 @@
#pragma once
#include "nyquist.h"
#include "quantum.h"
#ifndef FLIP_HALF

View File

@@ -1,6 +1,5 @@
#pragma once
#include "nyquist.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1 +0,0 @@
#include "quefrency.h"

View File

@@ -1,19 +0,0 @@
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_quefrency_rev1
#include "rev1.h"
#endif
#ifdef KEYBOARD_keebio_quefrency_rev2
#include "rev2.h"
#endif
#ifdef KEYBOARD_keebio_quefrency_rev3
#include "rev3.h"
#endif
#ifdef KEYBOARD_keebio_quefrency_rev4
#include "rev4.h"
#endif
#ifdef KEYBOARD_keebio_quefrency_rev5
#include "rev5.h"
#endif

View File

@@ -1,4 +1,4 @@
#include "quefrency.h"
#include "rev1.h"
void eeconfig_init_kb(void) {
#ifdef RGBLIGHT_ENABLE

View File

@@ -1,7 +1,5 @@
#pragma once
#include "quefrency.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1,4 +1,4 @@
#include "quefrency.h"
#include "rev2.h"
#include "split_util.h"
void matrix_init_kb(void) {

View File

@@ -1,6 +1,5 @@
#pragma once
#include "quefrency.h"
#include "quantum.h"
#define LAYOUT_60( \

View File

@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quefrency.h"
#include "rev3.h"
#include "split_util.h"
void matrix_init_kb(void) {

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "quefrency.h"
#include "quantum.h"
#define LAYOUT_60( \

View File

@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quefrency.h"
#include "rev4.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "quefrency.h"
#include "quantum.h"
#define LAYOUT_60( \

View File

@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quefrency.h"
#include "rev5.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "quefrency.h"
#include "quantum.h"
#define LAYOUT_60( \

View File

@@ -1 +0,0 @@
#include "rev1.h"

View File

@@ -1,7 +1,5 @@
#pragma once
#include "rorschach.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1 +0,0 @@
#include "rorschach.h"

View File

@@ -1,7 +0,0 @@
#pragma once
#ifdef KEYBOARD_keebio_rorschach_rev1
#include "rev1.h"
#endif
#include "quantum.h"

View File

@@ -1,6 +1,5 @@
#pragma once
#include "sinc.h"
#include "quantum.h"
#define XXX KC_NO

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "sinc.h"
#include "quantum.h"
#define LAYOUT_75( \

View File

@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include "sinc.h"
#include "quantum.h"
#define LAYOUT_75( \

View File

@@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "sinc.h"
#include "quantum.h"
#include "split_util.h"
#ifdef BACKLIGHT_ENABLE

View File

@@ -1,28 +0,0 @@
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_sinc_rev1
#include "rev1.h"
#endif
#ifdef KEYBOARD_keebio_sinc_rev2
#include "rev2.h"
#endif
#ifdef KEYBOARD_keebio_sinc_rev3
#include "rev3.h"
#endif

View File

@@ -1 +0,0 @@
#include "viterbi.h"

View File

@@ -1,6 +1,5 @@
#pragma once
#include "viterbi.h"
#include "quantum.h"
#ifndef FLIP_HALF

View File

@@ -1,4 +1,4 @@
#include "viterbi.h"
#include "rev2.h"
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE

View File

@@ -1,6 +1,5 @@
#pragma once
#include "viterbi.h"
#include "quantum.h"
#define LAYOUT( \

View File

@@ -1 +0,0 @@
#include "viterbi.h"

View File

@@ -1,12 +0,0 @@
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_viterbi_rev1
#include "rev1.h"
#elif KEYBOARD_keebio_viterbi_rev2
#include "rev2.h"
#endif
#define LAYOUT_ortho_5x14 LAYOUT