From df6147dbb6ef87c7889169b1d4993ffb8d9270eb Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 14 Jul 2014 16:09:04 +0200 Subject: [PATCH] Remove a few unused variables --- pdns/dnswriter.cc | 2 +- pdns/dnswriter.hh | 1 - pdns/dynlistener.hh | 1 - pdns/resolver.hh | 2 -- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pdns/dnswriter.cc b/pdns/dnswriter.cc index 5c61719319..594e616ce5 100644 --- a/pdns/dnswriter.cc +++ b/pdns/dnswriter.cc @@ -5,7 +5,7 @@ #include DNSPacketWriter::DNSPacketWriter(vector& content, const string& qname, uint16_t qtype, uint16_t qclass, uint8_t opcode) - : d_pos(0), d_content(content), d_qname(qname), d_qtype(qtype), d_qclass(qclass), d_canonic(false), d_lowerCase(false) + : d_pos(0), d_content(content), d_qname(qname), d_canonic(false), d_lowerCase(false) { d_content.clear(); dnsheader dnsheader; diff --git a/pdns/dnswriter.hh b/pdns/dnswriter.hh index 1ea68a9e77..fb39c124c8 100644 --- a/pdns/dnswriter.hh +++ b/pdns/dnswriter.hh @@ -116,7 +116,6 @@ private: vector & d_content; vector d_record; string d_qname; - uint16_t d_qtype, d_qclass; string d_recordqname; uint16_t d_recordqtype, d_recordqclass; uint32_t d_recordttl; diff --git a/pdns/dynlistener.hh b/pdns/dynlistener.hh index 1c3dc834b3..421751d897 100644 --- a/pdns/dynlistener.hh +++ b/pdns/dynlistener.hh @@ -65,7 +65,6 @@ private: void listenOnTCP(const ComboAddress&); void createSocketAndBind(int family, struct sockaddr*local, size_t len); - Utility::socklen_t d_addrlen; NetmaskGroup d_tcprange; int d_s; int d_client; diff --git a/pdns/resolver.hh b/pdns/resolver.hh index d74c03df97..28fdb12a1b 100644 --- a/pdns/resolver.hh +++ b/pdns/resolver.hh @@ -75,8 +75,6 @@ public: private: std::map locals; - - uint16_t d_randomid; }; class AXFRRetriever : public boost::noncopyable -- 2.47.2