diff --git a/libraries/AP_HAL_SMACCM/Util.cpp b/libraries/AP_HAL_SMACCM/Util.cpp deleted file mode 100644 index 162a5f3d77..0000000000 --- a/libraries/AP_HAL_SMACCM/Util.cpp +++ /dev/null @@ -1,35 +0,0 @@ - -#include "Util.h" -using namespace SMACCM; - -int SMACCMUtil::snprintf(char* str, size_t size, const char *format, ...) -{ - va_list ap; - va_start(ap, format); - int res = this->vsnprintf(str, size, format, ap); - va_end(ap); - return res; -} - -int SMACCMUtil::snprintf_P(char* str, size_t size, const prog_char_t *format, ...) -{ - va_list ap; - va_start(ap, format); - int res = this->vsnprintf_P(str, size, format, ap); - va_end(ap); - return res; -} - - -int SMACCMUtil::vsnprintf(char* str, size_t size, const char *format, va_list ap) -{ - return 0; -} - -int SMACCMUtil::vsnprintf_P(char* str, size_t size, const prog_char_t *format, - va_list ap) -{ - return 0; -} - - diff --git a/libraries/AP_HAL_SMACCM/Util.h b/libraries/AP_HAL_SMACCM/Util.h index a53e86305b..d03b24341e 100644 --- a/libraries/AP_HAL_SMACCM/Util.h +++ b/libraries/AP_HAL_SMACCM/Util.h @@ -7,11 +7,6 @@ class SMACCM::SMACCMUtil : public AP_HAL::Util { public: - int snprintf(char* str, size_t size, const char *format, ...); - int snprintf_P(char* str, size_t size, const prog_char_t *format, ...); - int vsnprintf(char* str, size_t size, const char *format, va_list ap); - int vsnprintf_P(char* str, size_t size, const prog_char_t *format, - va_list ap); bool run_debug_shell(AP_HAL::BetterStream *stream) { return false; } };