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/gmmk/gmmk2/p65/p65.c | 17 ----------------- keyboards/gmmk/gmmk2/p65/p65.h | 25 ------------------------- keyboards/gmmk/gmmk2/p96/p96.c | 17 ----------------- keyboards/gmmk/gmmk2/p96/p96.h | 25 ------------------------- keyboards/gmmk/pro/pro.c | 2 +- keyboards/gmmk/pro/pro.h | 29 ----------------------------- keyboards/gmmk/pro/rev1/ansi/ansi.h | 2 +- keyboards/gmmk/pro/rev1/iso/iso.h | 2 +- keyboards/gmmk/pro/rev2/ansi/ansi.h | 2 +- keyboards/gmmk/pro/rev2/iso/iso.h | 2 +- 10 files changed, 5 insertions(+), 118 deletions(-) delete mode 100644 keyboards/gmmk/gmmk2/p65/p65.c delete mode 100644 keyboards/gmmk/gmmk2/p65/p65.h delete mode 100644 keyboards/gmmk/gmmk2/p96/p96.c delete mode 100644 keyboards/gmmk/gmmk2/p96/p96.h delete mode 100644 keyboards/gmmk/pro/pro.h (limited to 'keyboards/gmmk') diff --git a/keyboards/gmmk/gmmk2/p65/p65.c b/keyboards/gmmk/gmmk2/p65/p65.c deleted file mode 100644 index d7e06f6488..0000000000 --- a/keyboards/gmmk/gmmk2/p65/p65.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2021 Glorious, LLC - * - * 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 . - */ - -#include "p65.h" diff --git a/keyboards/gmmk/gmmk2/p65/p65.h b/keyboards/gmmk/gmmk2/p65/p65.h deleted file mode 100644 index 7a6339c2e0..0000000000 --- a/keyboards/gmmk/gmmk2/p65/p65.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2021 Glorious, LLC - * - * 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 "quantum.h" - -#if defined(KEYBOARD_gmmk_gmmk2_p65_ansi) -# include "ansi/ansi.h" -#elif defined(KEYBOARD_gmmk_gmmk2_p65_iso) -# include "iso/iso.h" -#endif // GMMK V2 revisions diff --git a/keyboards/gmmk/gmmk2/p96/p96.c b/keyboards/gmmk/gmmk2/p96/p96.c deleted file mode 100644 index 47edcfe1ad..0000000000 --- a/keyboards/gmmk/gmmk2/p96/p96.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2021 Glorious, LLC - * - * 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 . - */ - -#include "p96.h" diff --git a/keyboards/gmmk/gmmk2/p96/p96.h b/keyboards/gmmk/gmmk2/p96/p96.h deleted file mode 100644 index e7b37d6816..0000000000 --- a/keyboards/gmmk/gmmk2/p96/p96.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2021 Glorious, LLC - * - * 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 "quantum.h" - -#if defined(KEYBOARD_gmmk_gmmk2_p96_ansi) -# include "ansi/ansi.h" -#elif defined(KEYBOARD_gmmk_gmmk2_p96_iso) -# include "iso/iso.h" -#endif // GMMK V2 revisions diff --git a/keyboards/gmmk/pro/pro.c b/keyboards/gmmk/pro/pro.c index 6aed1d6e18..3df15d71f2 100644 --- a/keyboards/gmmk/pro/pro.c +++ b/keyboards/gmmk/pro/pro.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 "pro.h" +#include "quantum.h" #ifdef ENCODER_ENABLE bool encoder_update_kb(uint8_t index, bool clockwise) { diff --git a/keyboards/gmmk/pro/pro.h b/keyboards/gmmk/pro/pro.h deleted file mode 100644 index c83d6c99c5..0000000000 --- a/keyboards/gmmk/pro/pro.h +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright 2021 Glorious, LLC - -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 "quantum.h" - -#if defined(KEYBOARD_gmmk_pro_rev1_ansi) -# include "rev1/ansi/ansi.h" -#elif defined(KEYBOARD_gmmk_pro_rev1_iso) -# include "rev1/iso/iso.h" -#elif defined(KEYBOARD_gmmk_pro_rev2_ansi) -# include "rev2/ansi/ansi.h" -#elif defined(KEYBOARD_gmmk_pro_rev2_iso) -# include "rev2/iso/iso.h" -#endif // GMMK Pro revisions diff --git a/keyboards/gmmk/pro/rev1/ansi/ansi.h b/keyboards/gmmk/pro/rev1/ansi/ansi.h index ab08d66592..9a6ae0f49e 100644 --- a/keyboards/gmmk/pro/rev1/ansi/ansi.h +++ b/keyboards/gmmk/pro/rev1/ansi/ansi.h @@ -16,7 +16,7 @@ #pragma once -#include "pro.h" +#include "quantum.h" #define ___ KC_NO diff --git a/keyboards/gmmk/pro/rev1/iso/iso.h b/keyboards/gmmk/pro/rev1/iso/iso.h index 353bcbe875..ad3b46cb97 100644 --- a/keyboards/gmmk/pro/rev1/iso/iso.h +++ b/keyboards/gmmk/pro/rev1/iso/iso.h @@ -16,7 +16,7 @@ #pragma once -#include "pro.h" +#include "quantum.h" #define ___ KC_NO diff --git a/keyboards/gmmk/pro/rev2/ansi/ansi.h b/keyboards/gmmk/pro/rev2/ansi/ansi.h index 2f8a28b940..b4a67dfd18 100644 --- a/keyboards/gmmk/pro/rev2/ansi/ansi.h +++ b/keyboards/gmmk/pro/rev2/ansi/ansi.h @@ -16,7 +16,7 @@ #pragma once -#include "pro.h" +#include "quantum.h" #define ___ KC_NO diff --git a/keyboards/gmmk/pro/rev2/iso/iso.h b/keyboards/gmmk/pro/rev2/iso/iso.h index a5844e10eb..3c1291ff1b 100644 --- a/keyboards/gmmk/pro/rev2/iso/iso.h +++ b/keyboards/gmmk/pro/rev2/iso/iso.h @@ -16,7 +16,7 @@ #pragma once -#include "pro.h" +#include "quantum.h" #define ___ KC_NO -- cgit v1.2.3