EEPROM-Keymap: Deprecate the deprecated 2-arg constructor

Originally scheduled to be removed by May last year, lets drop it now.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/787/head
Gergely Nagy 5 years ago
parent f3648c0f82
commit 653f65fe6e
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -21,7 +21,6 @@ If any of this does not make sense to you, or you have trouble updating your .in
+ [Deprecated APIs and their replacements](#deprecated-apis-and-their-replacements)
- [Removal of Layer.defaultLayer](#removal-of-layerdefaultlayer)
- [More clarity in Layer method names](#more-clarity-in-layer-method-names)
- [EEPROMKeymap mode](#eepromkeymap-mode)
- [Source code and namespace rearrangement](#source-code-and-namespace-rearrangement)
* [Removed APIs](#removed-apis)
@ -498,10 +497,6 @@ the firmware to remain backwards compatible, however, these functions are deprec
Also a new version of the onKeyswitchEvent-handler has been introduced. The old version is deprecated.
### EEPROMKeymap mode
The [EEPROM-Keymap](doc/plugin/EEPROM-Keymap.md) plugin had its `setup()` method changed, the formerly optional `method` argument is now obsolete and unused. It can be safely removed. Supplying a second argument will continue to work until its scheduled removal by **2019-04-30**.
## keymaps array and KEYMAPS and KEYMAPS_STACKED macros
The `keymaps` array has been replaced with a `keymaps_linear` array. This new array treats each layer as a simple one dimensional array of keys, rather than a two dimensional array of arrays of rows. At the same time, the `KEYMAPS` and `KEYMAPS_STACKED` macros that were previously defined in each hardware implmentation class have been replaced with `PER_KEY_DATA` and `PER_KEY_DATA_STACKED` macros in each hardware class. This change should be invisible to users, but will require changes by any plugin that accessed the 'keymaps' variable directly.
@ -533,6 +528,12 @@ The following headers and names have changed:
# Removed APIs
### Removed on 2020-01-06
### EEPROMKeymap mode
The [EEPROM-Keymap](doc/plugin/EEPROM-Keymap.md) plugin had its `setup()` method changed, the formerly optional `method` argument is now obsolete and unused. It can be safely removed.
### Removed on 2019-01-18
### Removal of Layer.defaultLayer

@ -20,10 +20,6 @@
#include "kaleidoscope/Runtime.h"
#include <Kaleidoscope-EEPROM-Settings.h>
#define _DEPRECATED_MESSAGE_EEPROM_KEYMAP_SETUP_MODE \
"The `mode` argument of EEPROMKeymap.setup() is deprecated and is not\n" \
"used anymore. You can remove it safely."
namespace kaleidoscope {
namespace plugin {
class EEPROMKeymap : public kaleidoscope::Plugin {
@ -39,9 +35,6 @@ class EEPROMKeymap : public kaleidoscope::Plugin {
EventHandlerResult onFocusEvent(const char *command);
static void setup(uint8_t max);
static void setup(uint8_t max, Mode mode) DEPRECATED(EEPROM_KEYMAP_SETUP_MODE) {
setup(max);
}
static void max_layers(uint8_t max);

Loading…
Cancel
Save