From f1e53a9bdded3ff72e96e3078687ec38cd88cfd9 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 21 Aug 2015 18:38:12 -0300 Subject: [PATCH] AP_HAL_AVR: remove unused write method --- libraries/AP_HAL_AVR/RCOutput.h | 2 -- libraries/AP_HAL_AVR/RCOutput_APM1.cpp | 7 ------- libraries/AP_HAL_AVR/RCOutput_APM2.cpp | 7 ------- 3 files changed, 16 deletions(-) diff --git a/libraries/AP_HAL_AVR/RCOutput.h b/libraries/AP_HAL_AVR/RCOutput.h index ee5cafbaaa..75e217ec1d 100644 --- a/libraries/AP_HAL_AVR/RCOutput.h +++ b/libraries/AP_HAL_AVR/RCOutput.h @@ -21,7 +21,6 @@ public: /* Output, either single channel or bulk array of channels */ void write(uint8_t ch, uint16_t period_ms); - void write(uint8_t ch, uint16_t* period_ms, uint8_t len); /* Read back current output state, as either single channel or * array of channels. */ @@ -48,7 +47,6 @@ public: /* Output, either single channel or bulk array of channels */ void write(uint8_t ch, uint16_t period_us); - void write(uint8_t ch, uint16_t* period_us, uint8_t len); /* Read back current output state, as either single channel or * array of channels starting at 0. */ diff --git a/libraries/AP_HAL_AVR/RCOutput_APM1.cpp b/libraries/AP_HAL_AVR/RCOutput_APM1.cpp index 2b5e17f6df..8bd635a504 100644 --- a/libraries/AP_HAL_AVR/RCOutput_APM1.cpp +++ b/libraries/AP_HAL_AVR/RCOutput_APM1.cpp @@ -174,13 +174,6 @@ void APM1RCOutput::write(uint8_t ch, uint16_t period_us) { } } -void APM1RCOutput::write(uint8_t ch, uint16_t* period_us, uint8_t len) { - for (int i = 0; i < len; i++) { - write(i + ch, period_us[i]); - } -} - - /* Read back current output state, as either single channel or * array of channels. */ uint16_t APM1RCOutput::read(uint8_t ch) { diff --git a/libraries/AP_HAL_AVR/RCOutput_APM2.cpp b/libraries/AP_HAL_AVR/RCOutput_APM2.cpp index e2f2f7623d..a5c1cfa043 100644 --- a/libraries/AP_HAL_AVR/RCOutput_APM2.cpp +++ b/libraries/AP_HAL_AVR/RCOutput_APM2.cpp @@ -165,13 +165,6 @@ void APM2RCOutput::write(uint8_t ch, uint16_t period_us) { } } -void APM2RCOutput::write(uint8_t ch, uint16_t* period_us, uint8_t len) { - for (int i = 0; i < len; i++) { - write(i + ch, period_us[i]); - } -} - - /* Read back current output state, as either single channel or * array of channels. */ uint16_t APM2RCOutput::read(uint8_t ch) {