]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Remove unnecessary IS_COMMAND definitions from recently added keyboards (#5065)
authorKonstantin Đorđević <vomindoraan@gmail.com>
Wed, 6 Feb 2019 19:28:47 +0000 (20:28 +0100)
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Wed, 6 Feb 2019 19:28:47 +0000 (11:28 -0800)
keyboards/meishi/config.h
keyboards/scarletbandana/config.h
keyboards/sentraq/number_pad/config.h
tmk_core/protocol/usb_hid/test/config.h

index cbc22476dd9a4b13fe88c206bd44d4d19e6f8f1e..6c712e2ad13c2bce8c1b99eca60344473c26ff66 100644 (file)
@@ -104,11 +104,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  */
 
-/* key combination for magic key command */
-#define IS_COMMAND() ( \
-    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
-)
-
 /* control how magic key switches layers */
 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS  true
 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS  true
index 7716813dd48311f1f2e671a73f1db4cdf8a29474..74443b3f866cbb34c5b73d1560d6e2fffbc7593a 100644 (file)
@@ -15,8 +15,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/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
 
 #include "config_common.h"
 
@@ -54,10 +53,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 
 #define DEBOUNCING_DELAY 5
-
-/* key combination for command */
-#define IS_COMMAND() ( \
-    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
-)
-
-#endif
index d52670c7dacb796f69215216df428d7aeebc7f48..0769f9f3d219dfe0eaf1d1b9ef5fec4516f8ad13 100644 (file)
@@ -76,8 +76,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 #define DEBOUNCING_DELAY 5
-
-/* key combination for magic key command */
-#define IS_COMMAND() ( \
-    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
-)
index a2403fe9c50043c138df92fba4d8714dbf2b10d0..71a6814fd152e3d66c85211c012ac80f97313b74 100644 (file)
@@ -15,9 +15,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/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
-
+#pragma once
 
 #define VENDOR_ID       0xFEED
 #define PRODUCT_ID      0xCAFE
@@ -25,16 +23,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define MANUFACTURER    t.m.k.
 #define PRODUCT         USB to USB keyboard converter
 
-
 #define DESCRIPTION     Product from t.m.k. keyboard firmware project
 
-
 /* matrix size */
 #define MATRIX_ROWS 32
 #define MATRIX_COLS 8
-
-
-/* key combination for command */
-#define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
-
-#endif