From 1ed03f498fa204178c2696c510ac6a2cd8524e2d Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sun, 26 Nov 2023 18:36:45 +0000 Subject: Remove userspace keymaps (#22544) --- users/ericgebhart/lang/locales.h | 42 ---------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 users/ericgebhart/lang/locales.h (limited to 'users/ericgebhart/lang/locales.h') diff --git a/users/ericgebhart/lang/locales.h b/users/ericgebhart/lang/locales.h deleted file mode 100644 index e38f5aeb72..0000000000 --- a/users/ericgebhart/lang/locales.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -/* - Copyright 2022 Eric Gebhart - - 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 "ericgebhart.h" - -// Stuff we need for locale and layer switching -// there can be more but we need to know where they start and end. -// remember there's limitations on layers. -// Our locales. so it's easy to switch between them. - - -const uint16_t base_layer_count = BASE_NAME_COUNT - 1; - -const uint16_t locale_layers[][2] = { - [LOCALE_DEFAULT] = {0, base_layer_count}, -#ifdef SECOND_LOCALE - [LOCALE_TWO] = {BASE_NAME_COUNT, BASE_NAME_COUNT + base_layer_count}, -#endif -}; - -uint32_t current_locale = LOCALE_DEFAULT; -#define LOCALE_LAYER_RANGE locale_layers[current_locale] - -bool process_locales(uint16_t keycode, keyrecord_t *record); - -#define PROCESS_LOCALES \ - if (!process_locales(keycode, record)) { return false; } -- cgit v1.2.3