From 3a8951912733fa793890b49561014c7f1693ce01 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 22 Aug 2020 08:05:41 +0200 Subject: [PATCH] Removed references to unused SoftwareSerial-only methods (#175) --- src/ISerial.cpp | 19 ------------------- src/ISerial.h | 8 -------- 2 files changed, 27 deletions(-) diff --git a/src/ISerial.cpp b/src/ISerial.cpp index dbfa6a30..650cfb06 100644 --- a/src/ISerial.cpp +++ b/src/ISerial.cpp @@ -33,25 +33,6 @@ void ISerial::flush() { _mod->ModuleSerial->flush(); } -// SoftwareSerial-only methods -#if !defined(RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED) -bool ISerial::listen() { - return(_mod->ModuleSerial->listen()); -} - -bool ISerial::isListening() { - return(_mod->ModuleSerial->isListening()); -} - -bool ISerial::stopListening() { - return(_mod->ModuleSerial->stopListening()); -} - -bool ISerial::overflow() { - return(_mod->ModuleSerial->overflow()); -} -#endif - size_t ISerial::print(const __FlashStringHelper *ifsh) { return(_mod->ModuleSerial->print(ifsh)); } diff --git a/src/ISerial.h b/src/ISerial.h index 34064934..0029234e 100644 --- a/src/ISerial.h +++ b/src/ISerial.h @@ -25,14 +25,6 @@ class ISerial { int available(); void flush(); - // SoftwareSerial-only methods - #if !defined(RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED) - bool listen(); - bool isListening(); - bool stopListening(); - bool overflow(); - #endif - size_t print(const __FlashStringHelper *); size_t print(const String &); size_t print(const char[]);