From f33f6e348440fbaf1b78d1ba870556b8c4e3f678 Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Mon, 22 Jul 2024 10:56:40 +0200 Subject: [PATCH] removing unused methods --- libraries/WiFiS3/src/Modem.cpp | 4 ++-- libraries/WiFiS3/src/Modem.h | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libraries/WiFiS3/src/Modem.cpp b/libraries/WiFiS3/src/Modem.cpp index 6a2c3a5b..c1dba332 100644 --- a/libraries/WiFiS3/src/Modem.cpp +++ b/libraries/WiFiS3/src/Modem.cpp @@ -10,13 +10,13 @@ using namespace std; /* -------------------------------------------------------------------------- */ -ModemClass::ModemClass(int tx, int rx) : beginned(false), delete_serial(false), _timeout(MODEM_TIMEOUT), trim_results(true), read_by_size(false) { +ModemClass::ModemClass(int tx, int rx) : beginned(false), delete_serial(false), _timeout(MODEM_TIMEOUT), trim_results(true) { /* -------------------------------------------------------------------------- */ _serial = new UART(tx,rx); } /* -------------------------------------------------------------------------- */ -ModemClass::ModemClass(UART * serial) : beginned(false) , delete_serial(true) , _serial(serial), _timeout(MODEM_TIMEOUT), trim_results(true), read_by_size(false) { +ModemClass::ModemClass(UART * serial) : beginned(false) , delete_serial(true) , _serial(serial), _timeout(MODEM_TIMEOUT), trim_results(true) { /* -------------------------------------------------------------------------- */ } diff --git a/libraries/WiFiS3/src/Modem.h b/libraries/WiFiS3/src/Modem.h index d6995885..3f785bc9 100644 --- a/libraries/WiFiS3/src/Modem.h +++ b/libraries/WiFiS3/src/Modem.h @@ -35,7 +35,7 @@ class ModemClass { } void read_using_size() { - read_by_size = true; + // read_by_size = true; // deprecated } bool beginned; @@ -79,8 +79,6 @@ class ModemClass { unsigned long _timeout; uint8_t tx_buff[MAX_BUFF_SIZE]; bool trim_results; - bool read_by_size; - bool read_by_size_finished(std::string &rx); Stream * _serial_debug; uint8_t _debug_level = 0; };