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

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

View File

@@ -1,19 +0,0 @@
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_helix_rev1
#include "rev1.h"
#endif
#ifdef KEYBOARD_helix_rev2
#include "rev2.h"
#endif
#ifdef KEYBOARD_helix_rev3_5rows
#include "rev3_5rows.h"
#endif
#ifdef KEYBOARD_helix_rev3_4rows
#include "rev3_4rows.h"
#endif
#ifdef KEYBOARD_helix_pico
#include "pico.h"
#endif

View File

@@ -13,7 +13,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 "helix.h"
#include "pico.h"
// Each keymap.c should use is_keyboard_master() instead of 'is_master'.
// But keep 'is_master' for a while for backwards compatibility

View File

@@ -15,7 +15,7 @@
*/
#pragma once
#include "helix.h"
#include "quantum.h"
// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
// But keep 'is_master' for a while for backwards compatibility

View File

@@ -13,7 +13,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 "helix.h"
#include "rev2.h"
// Each keymap.c should use is_keyboard_master() instead of 'is_master'.
// But keep 'is_master' for a while for backwards compatibility

View File

@@ -15,7 +15,7 @@
*/
#pragma once
#include "helix.h"
#include "quantum.h"
bool is_mac_mode(void);
void set_mac_mode_kb(bool macmode);

View File

@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "helix.h"
#include "rev3_4rows.h"
bool is_mac_mode(void) {
return keymap_config.swap_lalt_lgui == false;

View File

@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "helix.h"
#include "rev3_5rows.h"
bool is_mac_mode(void) {
return keymap_config.swap_lalt_lgui == false;