Remove unnecessary constructor definitions

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1194/head
Michael Richters 3 years ago
parent 4bcf4b85d6
commit 403ea4a8ec
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -32,8 +32,6 @@ class ColormapEffect : public Plugin,
public LEDModeInterface,
public AccessTransientLEDMode {
public:
ColormapEffect(void) {}
void max_layers(uint8_t max_);
EventHandlerResult onLayerChange();

@ -38,8 +38,6 @@ namespace kaleidoscope {
namespace plugin {
class Cycle : public kaleidoscope::Plugin {
public:
Cycle(void) {}
static void replace(Key key);
static void replace(uint8_t cycle_size, const Key cycle_steps[]);

@ -30,8 +30,6 @@ namespace plugin {
class DynamicTapDance : public kaleidoscope::Plugin {
public:
DynamicTapDance() {}
EventHandlerResult onNameQuery();
EventHandlerResult onFocusEvent(const char *command);

@ -34,8 +34,6 @@ class EEPROMKeymapProgrammer : public kaleidoscope::Plugin {
} mode_t;
static mode_t mode;
EEPROMKeymapProgrammer(void) {}
static void activate(void) {
nextState();
}

@ -33,8 +33,6 @@ class EEPROMKeymap : public kaleidoscope::Plugin {
EXTEND
};
EEPROMKeymap(void) {}
EventHandlerResult onSetup();
EventHandlerResult onNameQuery();
EventHandlerResult onFocusEvent(const char *command);

@ -26,8 +26,6 @@ namespace kaleidoscope {
namespace plugin {
class EEPROMSettings : public kaleidoscope::Plugin {
public:
EEPROMSettings(void) {}
EventHandlerResult onSetup();
EventHandlerResult beforeEachCycle();

@ -34,8 +34,6 @@ class CRC_ {
public:
uint16_t crc = 0;
CRC_(void){};
void update(const void *data, uint8_t len);
void finalize(void) {
reflect(16);

@ -35,8 +35,6 @@ namespace plugin {
class EscapeOneShot : public kaleidoscope::Plugin {
public:
EscapeOneShot(void) {}
EventHandlerResult onKeyEvent(KeyEvent &event);
static void setCancelKey(Key cancel_key) {

@ -33,8 +33,6 @@ namespace plugin {
//
class FingerPainter : public LEDMode {
public:
FingerPainter(void) {}
static void toggle(void);
EventHandlerResult onKeyEvent(KeyEvent &event);

@ -33,8 +33,6 @@ namespace plugin {
class FirmwareDump : public kaleidoscope::Plugin {
public:
FirmwareDump() {}
EventHandlerResult onSetup();
EventHandlerResult onFocusEvent(const char *command);

@ -20,8 +20,6 @@ Nevertheless, a very simple example is shown below:
namespace kaleidoscope {
class FocusTestCommand : public Plugin {
public:
FocusTestCommand() {}
EventHandlerResult onNameQuery() {
return ::Focus.sendName(F("FocusTestCommand"));
}

@ -33,8 +33,6 @@ namespace kaleidoscope {
namespace plugin {
class FocusSerial : public kaleidoscope::Plugin {
public:
FocusSerial(void) {}
static constexpr char COMMENT = '#';
static constexpr char SEPARATOR = ' ';
static constexpr char NEWLINE = '\n';

@ -34,8 +34,6 @@ class GhostInTheFirmware : public kaleidoscope::Plugin {
};
static const GhostKey *ghost_keys;
GhostInTheFirmware(void) {}
static void activate(void);
EventHandlerResult afterEachCycle();

@ -60,8 +60,6 @@ struct ErgoDoxProps : public kaleidoscope::device::ATmega32U4KeyboardProps {
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
class ErgoDox : public kaleidoscope::device::ATmega32U4Keyboard<ErgoDoxProps> {
public:
ErgoDox(void) {}
void scanMatrix(void);
void readMatrix(void);
void actOnMatrixScan(void);

@ -35,8 +35,6 @@ namespace ez {
class ErgoDoxScanner {
public:
ErgoDoxScanner() {}
void begin();
void toggleATMegaRow(int row);
void selectExtenderRow(int row);

@ -33,8 +33,6 @@ class HardwareTestMode : public kaleidoscope::Plugin {
} chatter_data;
static uint8_t actionKey;
HardwareTestMode(void) {}
static void runTests();
static void setActionKey(uint8_t key);

@ -34,8 +34,6 @@ class Heatmap : public Plugin,
public LEDModeInterface,
public AccessTransientLEDMode {
public:
Heatmap(void) {}
static uint16_t update_delay;
static const cRGB *heat_colors;
static uint8_t heat_colors_length;

@ -25,7 +25,6 @@ namespace plugin {
class FocusHostOSCommand : public kaleidoscope::Plugin {
public:
FocusHostOSCommand() {}
EventHandlerResult onFocusEvent(const char *command);
};

@ -41,7 +41,6 @@ typedef enum {
class HostOS : public kaleidoscope::Plugin {
public:
HostOS() {}
EventHandlerResult onSetup();
hostos::Type os(void) {

@ -30,8 +30,6 @@ class HostPowerManagement : public kaleidoscope::Plugin {
Resume,
} Event;
HostPowerManagement(void) {}
EventHandlerResult beforeEachCycle();
private:

@ -29,8 +29,6 @@ namespace plugin {
class IdleLEDs : public kaleidoscope::Plugin {
public:
IdleLEDs(void) {}
static uint32_t idle_time_limit;
static uint32_t idleTimeoutSeconds();

@ -31,8 +31,6 @@ class LEDActiveLayerColorEffect : public Plugin,
public LEDModeInterface,
public AccessTransientLEDMode {
public:
LEDActiveLayerColorEffect(void) {}
EventHandlerResult onLayerChange();
void setColormap(const cRGB colormap[]);

@ -29,8 +29,6 @@ namespace kaleidoscope {
namespace plugin {
class ActiveModColorEffect : public kaleidoscope::Plugin {
public:
ActiveModColorEffect(void) {}
static void setHighlightColor(cRGB color) {
highlight_color_ = color;
}

@ -41,8 +41,6 @@ namespace kaleidoscope {
namespace plugin {
class AlphaSquare : public kaleidoscope::Plugin {
public:
AlphaSquare(void) {}
static void display(Key key, KeyAddr key_addr, cRGB key_color);
static void display(Key key, KeyAddr key_addr);
static void display(Key key) {

@ -34,8 +34,6 @@ class AlphaSquareEffect : public Plugin,
public LEDModeInterface,
public AccessTransientLEDMode {
public:
AlphaSquareEffect(void) {}
static uint16_t length;
EventHandlerResult onKeyEvent(KeyEvent &event);

@ -20,9 +20,6 @@ full extent, we need to create our own plugin on top of it.
namespace example {
class TestLEDMode : public LEDMode {
public:
TestLEDMode() {}
protected:
void setup(void) final;
void update(void) final;

@ -29,8 +29,6 @@ namespace plugin {
class LEDPaletteTheme : public kaleidoscope::Plugin {
public:
LEDPaletteTheme(void) {}
static uint16_t reserveThemes(uint8_t max_themes);
static void updateHandler(uint16_t theme_base, uint8_t theme);
static void refreshAt(uint16_t theme_base, uint8_t theme, KeyAddr key_addr);

@ -41,8 +41,6 @@ class StalkerEffect : public Plugin,
virtual cRGB compute(uint8_t *step) = 0;
};
StalkerEffect(void) {}
static ColorComputer *variant;
static uint16_t step_length;
static cRGB inactive_color;

@ -41,8 +41,6 @@ class WavepoolEffect : public Plugin,
public LEDModeInterface,
public AccessTransientLEDMode {
public:
WavepoolEffect(void) {}
EventHandlerResult onKeyEvent(KeyEvent &event);
// ms before idle animation starts after last keypress

@ -28,8 +28,6 @@ namespace kaleidoscope {
namespace plugin {
class BootAnimationEffect : public kaleidoscope::Plugin {
public:
BootAnimationEffect(void) {}
static uint16_t timeout;
static cRGB color;

@ -27,8 +27,6 @@ namespace plugin {
class LEDBreatheEffect : public Plugin,
public LEDModeInterface {
public:
LEDBreatheEffect(void) {}
uint8_t hue = 170;
uint8_t saturation = 255;

@ -28,8 +28,6 @@ namespace plugin {
class LEDChaseEffect : public Plugin,
public LEDModeInterface {
public:
LEDChaseEffect(void) {}
uint8_t update_delay() {
return update_delay_;
}

@ -27,8 +27,6 @@ namespace plugin {
class LEDRainbowEffect : public Plugin,
public LEDModeInterface {
public:
LEDRainbowEffect(void) {}
void brightness(uint8_t);
uint8_t brightness(void) {
return rainbow_value;
@ -70,8 +68,6 @@ class LEDRainbowEffect : public Plugin,
class LEDRainbowWaveEffect : public Plugin, public LEDModeInterface {
public:
LEDRainbowWaveEffect(void) {}
void brightness(uint8_t);
uint8_t brightness(void) {
return rainbow_value;

@ -26,8 +26,6 @@ namespace plugin {
class LayerFocus : public kaleidoscope::Plugin {
public:
LayerFocus() {}
EventHandlerResult onNameQuery();
EventHandlerResult onFocusEvent(const char *command);
};

@ -67,7 +67,6 @@ class Leader : public kaleidoscope::Plugin {
action_t action;
} dictionary_t;
Leader(void) {}
static const dictionary_t *dictionary;
static void reset(void);

@ -48,8 +48,6 @@ class MagicCombo : public kaleidoscope::Plugin {
int8_t keys[MAX_COMBO_LENGTH + 1];
} Combo;
MagicCombo(void) {}
static uint16_t min_interval;
EventHandlerResult onNameQuery();

@ -28,8 +28,6 @@ namespace plugin {
class NumPad : public kaleidoscope::Plugin {
public:
NumPad(void) {}
static uint8_t numPadLayer;
static cRGB color;
static uint8_t lock_hue;

@ -50,9 +50,6 @@ constexpr Key OneShotLayerKey(uint8_t layer) {
class OneShot : public kaleidoscope::Plugin {
public:
// Constructor
// OneShot() {}
// --------------------------------------------------------------------------
// Configuration functions

@ -28,8 +28,6 @@ namespace plugin {
class PersistentLEDMode : public kaleidoscope::Plugin {
public:
PersistentLEDMode() {}
EventHandlerResult onSetup();
EventHandlerResult onNameQuery();
EventHandlerResult onLEDModeChange();

@ -31,8 +31,6 @@ namespace plugin {
class Redial : public kaleidoscope::Plugin {
public:
Redial(void) {}
static bool shouldRemember(Key mappedKey);
EventHandlerResult onNameQuery();

@ -31,8 +31,6 @@ class ShapeShifter : public kaleidoscope::Plugin {
Key original, replacement;
} dictionary_t;
ShapeShifter(void) {}
static const dictionary_t *dictionary;
EventHandlerResult onKeyEvent(KeyEvent &event);

@ -31,8 +31,6 @@ namespace plugin {
namespace steno {
class GeminiPR : public kaleidoscope::Plugin {
public:
GeminiPR(void) {}
EventHandlerResult onNameQuery();
EventHandlerResult onKeyEvent(KeyEvent &event);

@ -41,8 +41,6 @@ class Syster : public kaleidoscope::Plugin {
SymbolAction
} action_t;
Syster() {}
static void reset();
bool is_active();

@ -53,8 +53,6 @@ class TapDance : public kaleidoscope::Plugin {
Release,
};
TapDance(void) {}
static uint16_t time_out;
void actionKeys(uint8_t tap_count, ActionType tap_dance_action, uint8_t max_keys, const Key tap_keys[]);

@ -36,8 +36,6 @@ constexpr Key TopsyTurvyKey(Key key) {
class TopsyTurvy : public kaleidoscope::Plugin {
public:
TopsyTurvy(void) {}
EventHandlerResult onKeyEvent(KeyEvent &event);
EventHandlerResult beforeReportingState(const KeyEvent &event);

@ -32,8 +32,6 @@ namespace kaleidoscope {
namespace plugin {
class Turbo : public kaleidoscope::Plugin {
public:
Turbo() {}
uint16_t interval();
void interval(uint16_t newVal);

@ -28,8 +28,6 @@ namespace plugin {
class TypingBreaks : public kaleidoscope::Plugin {
public:
TypingBreaks(void) {}
typedef struct settings_t {
uint16_t idle_time_limit;
uint16_t lock_time_out;

@ -23,8 +23,6 @@ namespace kaleidoscope {
namespace plugin {
class USBQuirks : public kaleidoscope::Plugin {
public:
USBQuirks() {}
void toggleKeyboardProtocol();
};

@ -26,8 +26,6 @@ namespace kaleidoscope {
namespace plugin {
class Unicode : public kaleidoscope::Plugin {
public:
Unicode(void) {}
static void start(void);
static void input(void);
static void end(void);

@ -25,8 +25,6 @@ namespace kaleidoscope {
namespace plugin {
class WinKeyToggle : public kaleidoscope::Plugin {
public:
WinKeyToggle() {}
EventHandlerResult onKeyEvent(KeyEvent &event);
void toggle() {
enabled_ = !enabled_;

Loading…
Cancel
Save