mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-20 12:54:23 +01:00
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;
^
This commit is contained in:
1 parent
bad9806687
commit
4593b22bbe
1 file changed
-11
@@ -1,11 +1,5 @@
|
||||
#include "net/http_headers.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <winsock2.h> // for timeval
|
||||
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user