From 625154754a009bcab987154689ce6b277266de9b Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Fri, 17 Jun 2016 11:09:37 -0400 Subject: [PATCH] Remove unused code --- HttpClient.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/HttpClient.cpp b/HttpClient.cpp index 65099e1..600820f 100644 --- a/HttpClient.cpp +++ b/HttpClient.cpp @@ -359,18 +359,6 @@ bool HttpClient::endOfBodyReached() int HttpClient::read() { -#if 0 // Fails on WiFi because multi-byte read seems to be broken - uint8_t b[1]; - int ret = read(b, 1); - if (ret == 1) - { - return b[0]; - } - else - { - return -1; - } -#else int ret = iClient->read(); if (ret >= 0) { @@ -382,7 +370,6 @@ int HttpClient::read() } } return ret; -#endif } int HttpClient::read(uint8_t *buf, size_t size)