From cfaf9f94206a2d4fd714441eeb57c1a52193f4e7 Mon Sep 17 00:00:00 2001 From: murata Date: Sat, 22 May 2021 23:38:45 +0900 Subject: [PATCH] AP_CANManager: Delete unused methods --- libraries/AP_CANManager/AP_SLCANIface.cpp | 10 ---------- libraries/AP_CANManager/AP_SLCANIface.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/libraries/AP_CANManager/AP_SLCANIface.cpp b/libraries/AP_CANManager/AP_SLCANIface.cpp index 778bb12824..b9a0db3523 100644 --- a/libraries/AP_CANManager/AP_SLCANIface.cpp +++ b/libraries/AP_CANManager/AP_SLCANIface.cpp @@ -106,16 +106,6 @@ static uint8_t hex2nibble(char c) return out; } -int SLCAN::CANIface::set_port(AP_HAL::UARTDriver* port) -{ - if (port == nullptr) { - return -1; - } - _port = port; - return 0; -} - - bool SLCAN::CANIface::push_Frame(AP_HAL::CANFrame &frame) { AP_HAL::CANIface::CanRxItem frm; diff --git a/libraries/AP_CANManager/AP_SLCANIface.h b/libraries/AP_CANManager/AP_SLCANIface.h index ab828f8a4e..df46e7ff87 100644 --- a/libraries/AP_CANManager/AP_SLCANIface.h +++ b/libraries/AP_CANManager/AP_SLCANIface.h @@ -100,9 +100,6 @@ public: // Initialisation of SLCAN Passthrough method of operation bool init_passthrough(uint8_t i); - // Set UART port to be used with slcan interface - int set_port(AP_HAL::UARTDriver* port); - void reset_params(); int8_t get_iface_num() const {