device/Raise: Remove two unused methods from an internal class

The (internal) `::dygma::raise::Hand` class had two methods that weren't used by
Kaleidoscope at all: `.setAllLEDsTo` and `.setOneLEDTo`. Since they're unused,
remove them.

We weren't going to use them anyway, because they immediately sync to the LED
driver, while we want to do that in `syncLeds()`, and in there only.

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

@ -228,25 +228,6 @@ void Hand::sendLEDBank(uint8_t bank) {
uint8_t result = twi_.writeTo(data, ELEMENTS(data)); uint8_t result = twi_.writeTo(data, ELEMENTS(data));
} }
void Hand::setAllLEDsTo(cRGB color) {
uint8_t data[] = {TWI_CMD_LED_SET_ALL_TO,
pgm_read_byte(&gamma8[color.r]),
pgm_read_byte(&gamma8[color.g]),
pgm_read_byte(&gamma8[color.b])
};
twi_.writeTo(data, ELEMENTS(data));
}
void Hand::setOneLEDTo(byte led, cRGB color) {
uint8_t data[] = {TWI_CMD_LED_SET_ONE_TO,
led,
pgm_read_byte(&gamma8[color.r]),
pgm_read_byte(&gamma8[color.g]),
pgm_read_byte(&gamma8[color.b])
};
twi_.writeTo(data, ELEMENTS(data));
}
} }
} }
} }

@ -74,8 +74,6 @@ class Hand {
bool moreKeysWaiting(); bool moreKeysWaiting();
void sendLEDData(); void sendLEDData();
void sendLEDBank(uint8_t bank); void sendLEDBank(uint8_t bank);
void setOneLEDTo(byte led, cRGB color);
void setAllLEDsTo(cRGB color);
keydata_t getKeyData(); keydata_t getKeyData();
bool readKeys(); bool readKeys();
uint8_t controllerAddress(); uint8_t controllerAddress();

Loading…
Cancel
Save