From: attilamolnar Date: Mon, 11 Mar 2013 19:52:21 +0000 (+0100) Subject: Remove dead code from DNS X-Git-Tag: v2.0.23~363 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=ade9cc213446832e818f4dd2c7d942e498cbb2d0;p=user%2Fhenk%2Fcode%2Finspircd.git Remove dead code from DNS --- diff --git a/include/dns.h b/include/dns.h index b88f3a247..27c3c8848 100644 --- a/include/dns.h +++ b/include/dns.h @@ -294,11 +294,6 @@ class CoreExport DNS : public EventHandler */ static const int MAX_REQUEST_ID = 0xFFFF; - /** - * A counter used to form part of the pseudo-random id - */ - int currid; - /** * Currently cached items */ diff --git a/src/dns.cpp b/src/dns.cpp index aa340a1de..bede73a6f 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -371,10 +371,6 @@ DNS::DNS() /* Clear the requests class table */ memset(requests,0,sizeof(requests)); - /* Set the id of the next request to 0 - */ - currid = 0; - /* DNS::Rehash() sets this to a valid ptr */ this->cache = NULL;