Skip to content

Commit 7763cca

Browse files
committed
remove flash string helper constructors
1 parent 3e49ff2 commit 7763cca

14 files changed

+0
-90
lines changed

src/AdafruitIO.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ AdafruitIO::AdafruitIO(const char *user, const char *key)
2626
_init();
2727
}
2828

29-
AdafruitIO::AdafruitIO(const __FlashStringHelper *user, const __FlashStringHelper *key)
30-
{
31-
_mqtt = 0;
32-
_http = 0;
33-
_username = (const char*)user;
34-
_key = (const char*)key;
35-
_err_topic = 0;
36-
_throttle_topic = 0;
37-
_err_sub = 0;
38-
_throttle_sub = 0;
39-
_packetread_timeout = 100;
40-
41-
_init();
42-
}
43-
4429
void errorCallback(char *err, uint16_t len)
4530
{
4631
AIO_ERR_PRINTLN();
@@ -90,11 +75,6 @@ AdafruitIO_Feed* AdafruitIO::feed(const char* name)
9075
return new AdafruitIO_Feed(this, name);
9176
}
9277

93-
AdafruitIO_Feed* AdafruitIO::feed(const __FlashStringHelper *name)
94-
{
95-
return new AdafruitIO_Feed(this, name);
96-
}
97-
9878
AdafruitIO_Dashboard* AdafruitIO::dashboard(const char* name)
9979
{
10080
return new AdafruitIO_Dashboard(this, name);

src/AdafruitIO.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ class AdafruitIO {
3636

3737
public:
3838
AdafruitIO(const char *user, const char *key);
39-
AdafruitIO(const __FlashStringHelper *user, const __FlashStringHelper *key);
4039
virtual ~AdafruitIO();
4140

4241
void connect();
4342

4443
void run(uint16_t busywait_ms = 0);
4544

4645
AdafruitIO_Feed* feed(const char *name);
47-
AdafruitIO_Feed* feed(const __FlashStringHelper *name);
4846

4947
AdafruitIO_Dashboard* dashboard(const char *name);
5048

src/AdafruitIO_Ethernet.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ class AdafruitIO_Ethernet : public AdafruitIO {
3535
_http = new HttpClient(*_client, _host, _http_port);
3636
}
3737

38-
AdafruitIO_Ethernet(const __FlashStringHelper *user, const __FlashStringHelper *key):AdafruitIO(user, key)
39-
{
40-
_client = new EthernetClient();
41-
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port);
42-
_http = new HttpClient(*_client, _host, _http_port);
43-
}
44-
4538
aio_status_t networkStatus()
4639
{
4740
if(_status == AIO_NET_CONNECTED)

src/AdafruitIO_FONA.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ class AdafruitIO_FONA : public AdafruitIO {
3737
_packetread_timeout = 500;
3838
}
3939

40-
AdafruitIO_FONA(const __FlashStringHelper *user, const __FlashStringHelper *key):AdafruitIO(user, key)
41-
{
42-
_serial = new SoftwareSerial(FONA_TX, FONA_RX);
43-
_fona = new Adafruit_FONA(FONA_RST);
44-
_mqtt = new Adafruit_MQTT_FONA(_fona, _host, _mqtt_port);
45-
_packetread_timeout = 500;
46-
}
47-
4840
void setAPN(FONAFlashStringPtr apn, FONAFlashStringPtr username=0, FONAFlashStringPtr password=0)
4941
{
5042
_fona->setGPRSNetworkSettings(apn, username, password);

src/AdafruitIO_Feed.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ AdafruitIO_Feed::AdafruitIO_Feed(AdafruitIO *io, const char *n)
2323
_init();
2424
}
2525

26-
AdafruitIO_Feed::AdafruitIO_Feed(AdafruitIO *io, const __FlashStringHelper *n)
27-
{
28-
_io = io;
29-
name = (const char*)n;
30-
_sub = 0;
31-
_pub = 0;
32-
_dataCallback = 0;
33-
34-
_init();
35-
}
36-
3726
AdafruitIO_Feed::~AdafruitIO_Feed()
3827
{
3928
if(_sub)

src/AdafruitIO_Feed.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class AdafruitIO_Feed {
2424

2525
public:
2626
AdafruitIO_Feed(AdafruitIO *io, const char *name);
27-
AdafruitIO_Feed(AdafruitIO *io, const __FlashStringHelper *name);
2827
~AdafruitIO_Feed();
2928

3029
void onMessage(AdafruitIODataCallbackType cb);

src/wifi/AdafruitIO_ESP8266.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ AdafruitIO_ESP8266::AdafruitIO_ESP8266(const char *user, const char *key, const
2222
_http = new HttpClient(*_client, _host, _http_port);
2323
}
2424

25-
AdafruitIO_ESP8266::AdafruitIO_ESP8266(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass):AdafruitIO(user, key)
26-
{
27-
_ssid = (const char*)ssid;
28-
_pass = (const char*)pass;
29-
_client = new WiFiClientSecure;
30-
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port);
31-
_http = new HttpClient(*_client, _host, _http_port);
32-
}
33-
3425
AdafruitIO_ESP8266::~AdafruitIO_ESP8266()
3526
{
3627
if(_client)

src/wifi/AdafruitIO_ESP8266.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class AdafruitIO_ESP8266 : public AdafruitIO {
2525

2626
public:
2727
AdafruitIO_ESP8266(const char *user, const char *key, const char *ssid, const char *pass);
28-
AdafruitIO_ESP8266(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass);
2928
~AdafruitIO_ESP8266();
3029

3130
aio_status_t networkStatus();

src/wifi/AdafruitIO_MKR1000.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ AdafruitIO_MKR1000::AdafruitIO_MKR1000(const char *user, const char *key, const
2222
_http = new HttpClient(*_client, _host, _http_port);
2323
}
2424

25-
AdafruitIO_MKR1000::AdafruitIO_MKR1000(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass):AdafruitIO(user, key)
26-
{
27-
_ssid = (const char*)ssid;
28-
_pass = (const char*)pass;
29-
_client = new WiFiSSLClient;
30-
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port);
31-
_http = new HttpClient(*_client, _host, _http_port);
32-
}
33-
3425
AdafruitIO_MKR1000::~AdafruitIO_MKR1000()
3526
{
3627
if(_client)

src/wifi/AdafruitIO_MKR1000.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class AdafruitIO_MKR1000 : public AdafruitIO {
2626

2727
public:
2828
AdafruitIO_MKR1000(const char *user, const char *key, const char *ssid, const char *pass);
29-
AdafruitIO_MKR1000(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass);
3029
~AdafruitIO_MKR1000();
3130

3231
aio_status_t networkStatus();

0 commit comments

Comments
 (0)