From c59a6a80d6b1338c519e68bbc33a98476d3bc1c0 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 1 Feb 2016 14:11:37 -0800 Subject: [PATCH] Remove an unused API --- LEDControl.cpp | 13 ------------- LEDControl.h | 2 -- implementation/Model01Beta.cpp | 4 ---- implementation/Model01Beta.h | 5 +---- 4 files changed, 1 insertion(+), 23 deletions(-) diff --git a/LEDControl.cpp b/LEDControl.cpp index ca8a1723..ad0a6104 100644 --- a/LEDControl.cpp +++ b/LEDControl.cpp @@ -1,23 +1,10 @@ #include "LEDControl.h" - - - - - LEDControl_::LEDControl_(void) { } -void LEDControl_::set_key_color(byte row, byte col, cRGB color) { - KeyboardHardware.led_set_crgb_at(row, col, color); -} - -cRGB LEDControl_::get_key_color(byte row, byte col) { - return KeyboardHardware.get_key_color(row, col); -} - void LEDControl_::initialize_led_mode(uint8_t mode) { set_all_leds_to(led_off); if (mode == LED_MODE_OFF) { diff --git a/LEDControl.h b/LEDControl.h index eeb7abad..9eb143e9 100644 --- a/LEDControl.h +++ b/LEDControl.h @@ -61,8 +61,6 @@ class LEDControl_ { uint8_t current_chase_counter = 0; static const uint8_t chase_threshold = 6; // End RGB stuff - void set_key_color(uint8_t row, uint8_t col, cRGB color); - cRGB get_key_color(uint8_t row, uint8_t col); void led_compute_breath(); void effect_breathe_init(); void effect_rainbow_init(); diff --git a/implementation/Model01Beta.cpp b/implementation/Model01Beta.cpp index 59d0c4fd..fa928caf 100644 --- a/implementation/Model01Beta.cpp +++ b/implementation/Model01Beta.cpp @@ -22,10 +22,6 @@ void Model01Beta_::leds_setup() { LED.setColorOrderGRB(); // Uncomment for RGB color order } -void Model01Beta_::led_set_crgb_at(byte row, byte col, cRGB color) { - LED.set_crgb_at(key_led_map[row][col], color); -} - cRGB Model01Beta_::get_key_color(byte row, byte col) { return LED.get_crgb_at(key_led_map[row][col]); } diff --git a/implementation/Model01Beta.h b/implementation/Model01Beta.h index 3e323751..b8925393 100644 --- a/implementation/Model01Beta.h +++ b/implementation/Model01Beta.h @@ -18,15 +18,12 @@ #define LEFT_COLS 8 #define LEFT_ROWS 4 - - - +//class Model01Beta_; class Model01Beta_ { public: Model01Beta_(void); void led_sync(void); - void led_set_crgb_at(byte row, byte col, cRGB color); void led_set_crgb_at(uint8_t i, cRGB crgb); cRGB get_key_color(byte row, byte col);