From 9dbee3e23d28e5f61384bbb5650505a572022341 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 16 Mar 2023 20:18:33 +1100 Subject: Remove useless "ifdef KEYBOARD_*" (#20078) Co-authored-by: Nick Brassel --- keyboards/hadron/hadron.c | 2 -- keyboards/hadron/hadron.h | 8 -------- keyboards/hadron/ver2/ver2.c | 2 +- keyboards/hadron/ver2/ver2.h | 3 --- keyboards/hadron/ver3/ver3.c | 2 +- keyboards/hadron/ver3/ver3.h | 18 ------------------ 6 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 keyboards/hadron/hadron.c delete mode 100644 keyboards/hadron/ver2/ver2.h delete mode 100644 keyboards/hadron/ver3/ver3.h (limited to 'keyboards/hadron') diff --git a/keyboards/hadron/hadron.c b/keyboards/hadron/hadron.c deleted file mode 100644 index fa5065b327..0000000000 --- a/keyboards/hadron/hadron.c +++ /dev/null @@ -1,2 +0,0 @@ -#include "hadron.h" - diff --git a/keyboards/hadron/hadron.h b/keyboards/hadron/hadron.h index 349311270e..7cc3c9702c 100644 --- a/keyboards/hadron/hadron.h +++ b/keyboards/hadron/hadron.h @@ -2,14 +2,6 @@ #include "quantum.h" -#if defined(KEYBOARD_hadron_ver0) -# include "ver0.h" -#elif defined(KEYBOARD_hadron_ver2) -# include "ver2.h" -#elif defined(KEYBOARD_hadron_ver3) -# include "ver3.h" -#endif - #define XXX KC_NO #define LAYOUT( \ diff --git a/keyboards/hadron/ver2/ver2.c b/keyboards/hadron/ver2/ver2.c index abf21d4256..583ac84a01 100644 --- a/keyboards/hadron/ver2/ver2.c +++ b/keyboards/hadron/ver2/ver2.c @@ -1,4 +1,4 @@ -#include "ver2.h" +#include "quantum.h" #ifdef OLED_ENABLE oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } diff --git a/keyboards/hadron/ver2/ver2.h b/keyboards/hadron/ver2/ver2.h deleted file mode 100644 index 8127b497f7..0000000000 --- a/keyboards/hadron/ver2/ver2.h +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#include "hadron.h" diff --git a/keyboards/hadron/ver3/ver3.c b/keyboards/hadron/ver3/ver3.c index 4c5a2e0c9a..d337fd9681 100644 --- a/keyboards/hadron/ver3/ver3.c +++ b/keyboards/hadron/ver3/ver3.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "ver3.h" +#include "quantum.h" #ifdef RGB_MATRIX_ENABLE diff --git a/keyboards/hadron/ver3/ver3.h b/keyboards/hadron/ver3/ver3.h deleted file mode 100644 index 1ad44b871f..0000000000 --- a/keyboards/hadron/ver3/ver3.h +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright 2018 ishtob - * - * 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 . - */ -#pragma once - -#include "hadron.h" -- cgit v1.2.3