]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove dead code from DNS
authorattilamolnar <attilamolnar@hush.com>
Mon, 11 Mar 2013 19:52:21 +0000 (20:52 +0100)
committerattilamolnar <attilamolnar@hush.com>
Mon, 11 Mar 2013 19:52:21 +0000 (20:52 +0100)
include/dns.h
src/dns.cpp

index b88f3a24767aaacf4f343a1c050d5792c8872fb9..27c3c884895cf0af84b24bb593ba0dfd1fedd9d2 100644 (file)
@@ -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
         */
index aa340a1de480ba4bef68110098efd489d8e49c98..bede73a6fada8736bc5fa94f01de32cf27789e8a 100644 (file)
@@ -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;