From 7d9c75478fc618afc40a77fb5f806eeb83d4cfdb Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 21 Aug 2015 18:42:35 -0300 Subject: [PATCH] AP_HAL_SITL: remove unused write method --- libraries/AP_HAL_SITL/RCOutput.cpp | 5 ----- libraries/AP_HAL_SITL/RCOutput.h | 1 - 2 files changed, 6 deletions(-) diff --git a/libraries/AP_HAL_SITL/RCOutput.cpp b/libraries/AP_HAL_SITL/RCOutput.cpp index 664f09883a..8f636d2418 100644 --- a/libraries/AP_HAL_SITL/RCOutput.cpp +++ b/libraries/AP_HAL_SITL/RCOutput.cpp @@ -28,11 +28,6 @@ void SITLRCOutput::write(uint8_t ch, uint16_t period_us) } } -void SITLRCOutput::write(uint8_t ch, uint16_t* period_us, uint8_t len) -{ - memcpy(_sitlState->pwm_output+ch, period_us, len*sizeof(uint16_t)); -} - uint16_t SITLRCOutput::read(uint8_t ch) { if (ch < SITL_NUM_CHANNELS) { diff --git a/libraries/AP_HAL_SITL/RCOutput.h b/libraries/AP_HAL_SITL/RCOutput.h index a165a95c1e..f2f08c19cb 100644 --- a/libraries/AP_HAL_SITL/RCOutput.h +++ b/libraries/AP_HAL_SITL/RCOutput.h @@ -18,7 +18,6 @@ public: void enable_ch(uint8_t ch); void disable_ch(uint8_t ch); void write(uint8_t ch, uint16_t period_us); - void write(uint8_t ch, uint16_t* period_us, uint8_t len); uint16_t read(uint8_t ch); void read(uint16_t* period_us, uint8_t len);