Remove dead code from DNS_Mgr

This commit is contained in:
Jon Siwek 2019-05-01 22:50:47 -07:00
parent 6db576195c
commit 5bccb44ad4
2 changed files with 5 additions and 5 deletions

View file

@ -1369,7 +1369,7 @@ void DNS_Mgr::CheckAsyncHostRequest(const char* host, bool timeout)
void DNS_Mgr::Flush() void DNS_Mgr::Flush()
{ {
DoProcess(false); DoProcess();
HostMap::iterator it; HostMap::iterator it;
for ( it = host_mappings.begin(); it != host_mappings.end(); ++it ) for ( it = host_mappings.begin(); it != host_mappings.end(); ++it )
@ -1391,11 +1391,11 @@ void DNS_Mgr::Flush()
void DNS_Mgr::Process() void DNS_Mgr::Process()
{ {
DoProcess(false); DoProcess();
next_timestamp = -1.0; next_timestamp = -1.0;
} }
void DNS_Mgr::DoProcess(bool flush) void DNS_Mgr::DoProcess()
{ {
if ( ! nb_dns ) if ( ! nb_dns )
return; return;
@ -1404,7 +1404,7 @@ void DNS_Mgr::DoProcess(bool flush)
{ {
AsyncRequest* req = asyncs_timeouts.top(); AsyncRequest* req = asyncs_timeouts.top();
if ( req->time + DNS_TIMEOUT > current_time() || flush ) if ( req->time + DNS_TIMEOUT > current_time() )
break; break;
if ( req->IsAddrReq() ) if ( req->IsAddrReq() )

View file

@ -132,7 +132,7 @@ protected:
void CheckAsyncTextRequest(const char* host, bool timeout); void CheckAsyncTextRequest(const char* host, bool timeout);
// Process outstanding requests. // Process outstanding requests.
void DoProcess(bool flush); void DoProcess();
// IOSource interface. // IOSource interface.
void GetFds(iosource::FD_Set* read, iosource::FD_Set* write, void GetFds(iosource::FD_Set* read, iosource::FD_Set* write,