From c590bea35b30b1719474a1a3934bf55bb61e8686 Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Wed, 20 Nov 2019 16:13:49 +0100 Subject: [PATCH] Removed method Virtual::getLedIndex(...) This method is now implemented in the LED driver base class based on the LED driver properties.Removed method Signed-off-by: Florian Fleissner --- src/kaleidoscope/device/virtual/Virtual.cpp | 4 ---- src/kaleidoscope/device/virtual/Virtual.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/kaleidoscope/device/virtual/Virtual.cpp b/src/kaleidoscope/device/virtual/Virtual.cpp index e0ff4cf6..73535575 100644 --- a/src/kaleidoscope/device/virtual/Virtual.cpp +++ b/src/kaleidoscope/device/virtual/Virtual.cpp @@ -371,10 +371,6 @@ cRGB VirtualLEDDriver::getCrgbAt(uint8_t i) const { return led_states_[i]; } -uint8_t VirtualLEDDriver::getLedIndex(uint8_t key_offset) const { - return kaleidoscope::DeviceProps::LEDDriverProps::getLedIndex(key_offset); -} - } // namespace virt } // namespace device diff --git a/src/kaleidoscope/device/virtual/Virtual.h b/src/kaleidoscope/device/virtual/Virtual.h index 4a880031..394cb421 100644 --- a/src/kaleidoscope/device/virtual/Virtual.h +++ b/src/kaleidoscope/device/virtual/Virtual.h @@ -107,7 +107,6 @@ class VirtualLEDDriver void syncLeds(); void setCrgbAt(uint8_t i, cRGB color); cRGB getCrgbAt(uint8_t i) const; - uint8_t getLedIndex(uint8_t key_offset) const; private: