From acdca3a07d75d92a300a68cf38cf1f460c263514 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Mon, 23 Mar 2020 11:17:26 +0100 Subject: [PATCH] Removing functions no longer necessary because we could update Arduino Create to the latest version of ESP8266 core (and not being stuck with that 2.5.0 version any longer --- src/MqttClient.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/MqttClient.h b/src/MqttClient.h index e0e9d63..d7c052f 100644 --- a/src/MqttClient.h +++ b/src/MqttClient.h @@ -67,9 +67,6 @@ class MqttClient : public Client { // from Client virtual int connect(IPAddress ip, uint16_t port = 1883); virtual int connect(const char *host, uint16_t port = 1883); -#ifdef ESP8266 - virtual int connect(const IPAddress& ip, uint16_t port) { return 0; }; /* ESP8266 core defines this pure virtual in Client.h */ -#endif virtual size_t write(uint8_t); virtual size_t write(const uint8_t *buf, size_t size); virtual int available(); @@ -94,10 +91,6 @@ class MqttClient : public Client { int connectError() const; int subscribeQoS() const; -#ifdef ESP8266 - virtual bool flush(unsigned int /*maxWaitMs*/) { flush(); return true; } /* ESP8266 core defines this pure virtual in Client.h */ - virtual bool stop(unsigned int /*maxWaitMs*/) { stop(); return true; } /* ESP8266 core defines this pure virtual in Client.h */ -#endif private: int connect(IPAddress ip, const char* host, uint16_t port);