Skip to content
Permalink
Browse files

remove unused variables

  • Loading branch information...
lasselukkari committed May 1, 2018
1 parent 3dd9c7b commit 95ae179c73b62866d15db0cddb4850cdd4f5e92a
Showing with 1 addition and 9 deletions.
  1. +1 −1 README.md
  2. +0 −1 aWOT.cpp
  3. +0 −7 aWOT.h
@@ -88,7 +88,7 @@ void setup() {
// HTTP GET /cats/lolcat
void routeParams(Request &req, Response &res) {
char catId[64];
char * catId = req.route("catId", catId, 64); // "lolcat"
req.route("catId", catId, 64);
res.success("text/plain");
res.print(catId);
@@ -36,7 +36,6 @@ Request::Request() :
m_queryComplete(false),
m_urlPath(NULL),
m_urlPathLength(0),
m_urlPathPartsCount(0),
m_route(NULL) {
}

7 aWOT.h
@@ -44,10 +44,6 @@
#define SERVER_READ_TIMEOUT_IN_MS 1000
#endif

#ifndef SERVER_URL_PATH_COMMAND_LENGTH
#define SERVER_URL_PATH_COMMAND_LENGTH 8
#endif

#ifndef SERVER_FAIL_MESSAGE
#define SERVER_FAIL_MESSAGE "<h1>400 Bad Request</h1>"
#endif
@@ -152,9 +148,6 @@ class Request: public Stream {
int m_urlPathLength;
int m_prefixLength;

char * m_urlPathParts[SERVER_URL_PATH_COMMAND_LENGTH];
int m_urlPathPartsCount;

int m_hexToInt(char *hex);

const char * m_route;

0 comments on commit 95ae179

Please sign in to comment.
You can’t perform that action at this time.