summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-03-11 20:52:21 +0100
committerattilamolnar <attilamolnar@hush.com>2013-03-11 20:52:21 +0100
commitade9cc213446832e818f4dd2c7d942e498cbb2d0 (patch)
tree5cf55a4a1ed3e2dc838c56951418cf7859430f59
parente59bb59ea29e73bf66139e9d5eab6d1b572e308d (diff)
Remove dead code from DNS
-rw-r--r--include/dns.h5
-rw-r--r--src/dns.cpp4
2 files changed, 0 insertions, 9 deletions
diff --git a/include/dns.h b/include/dns.h
index b88f3a247..27c3c8848 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -295,11 +295,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
*/
dnscache* cache;
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;