Skip to content

Commit 6251547

Browse files
committed
Remove unused code
1 parent 777b561 commit 6251547

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

HttpClient.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -359,18 +359,6 @@ bool HttpClient::endOfBodyReached()
359359

360360
int HttpClient::read()
361361
{
362-
#if 0 // Fails on WiFi because multi-byte read seems to be broken
363-
uint8_t b[1];
364-
int ret = read(b, 1);
365-
if (ret == 1)
366-
{
367-
return b[0];
368-
}
369-
else
370-
{
371-
return -1;
372-
}
373-
#else
374362
int ret = iClient->read();
375363
if (ret >= 0)
376364
{
@@ -382,7 +370,6 @@ int HttpClient::read()
382370
}
383371
}
384372
return ret;
385-
#endif
386373
}
387374

388375
int HttpClient::read(uint8_t *buf, size_t size)

0 commit comments

Comments
 (0)