From 4593b22bbe66f799e31f266166e123eda1abd84e Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 25 May 2015 14:07:35 +0000 Subject: [PATCH] net: remove dead (pre WaitUntilReady?) code accidentally found via native/net/http_headers.cpp: In member function 'void http::RequestHeader::ParseHeaders(int)': native/net/http_headers.cpp:136:12: error: 'timeval' in namespace '::' does not name a type struct ::timeval tv; ^ native/net/http_headers.cpp:137:6: error: request for member 'tv_sec' in 'tv', which is of non-class type 'int' tv.tv_sec = 5; ^ native/net/http_headers.cpp:138:6: error: request for member 'tv_usec' in 'tv', which is of non-class type 'int' tv.tv_usec = 0; ^ --- net/http_headers.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/net/http_headers.cpp b/net/http_headers.cpp index a5f544c05d..0fdf628d3f 100644 --- a/net/http_headers.cpp +++ b/net/http_headers.cpp @@ -1,11 +1,5 @@ #include "net/http_headers.h" -#ifdef _WIN32 - -#include // for timeval - -#endif - #include #include @@ -132,11 +126,6 @@ int RequestHeader::ParseHttpHeader(const char *buffer) { } void RequestHeader::ParseHeaders(int fd) { - // Get the request, with a timeout. - struct ::timeval tv; - tv.tv_sec = 5; - tv.tv_usec = 0; - int line_count = 0; // Loop through request headers. while (true) {