]> granicus.if.org Git - pdns/commitdiff
remove some unused variables from gsqlbackend
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 28 Nov 2013 07:49:04 +0000 (08:49 +0100)
committermind04 <mind04@monshouwer.org>
Thu, 28 Nov 2013 07:49:04 +0000 (08:49 +0100)
pdns/backends/gsql/gsqlbackend.cc
pdns/backends/gsql/gsqlbackend.hh

index a182bb83661e68d6fec76aefa98ce8eb2b16ece9..edcf2e68097754d6a3306506d0a3f662566e655c 100644 (file)
@@ -839,10 +839,8 @@ void GSQLBackend::lookup(const QType &qtype,const string &qname, DNSPacket *pkt_
   }
 
   d_qname=qname;
-
-  d_qtype=qtype;
-  d_count=0;
 }
+
 bool GSQLBackend::list(const string &target, int domain_id )
 {
   DLOG(L<<"GSQLBackend constructing handle for list of domain id '"<<domain_id<<"'"<<endl);
@@ -857,7 +855,6 @@ bool GSQLBackend::list(const string &target, int domain_id )
   }
 
   d_qname="";
-  d_count=0;
   return true;
 }
 
@@ -874,7 +871,6 @@ bool GSQLBackend::listSubZone(const string &zone, int domain_id) {
     throw PDNSException("GSQLBackend listSubZone query: "+e.txtReason());
   }
   d_qname="";
-  d_count=0;
   return true;
 }
 
index 3986ef9b8e1dac7c3eff043ae2aeaf53a96aacba..496085e5754059dd3fa4815276b78eb1aed00ed2 100644 (file)
@@ -77,8 +77,6 @@ public:
 
 private:
   string d_qname;
-  QType d_qtype;
-  int d_count;
   SSql *d_db;
   SSql::result_t d_result;
 
@@ -92,7 +90,7 @@ private:
   string d_wildCardANYIDQuery;
   string d_listQuery;
   string d_logprefix;
-  
+
   string d_MasterOfDomainsZoneQuery;
   string d_InfoOfDomainsZoneQuery;
   string d_InfoOfAllSlaveDomainsQuery;
@@ -112,7 +110,7 @@ private:
   string d_DeleteZoneQuery;
   string d_DeleteRRSet;
   string d_ZoneLastChangeQuery;
-  
+
   string d_firstOrderQuery;
   string d_beforeOrderQuery;
   string d_afterOrderQuery;
@@ -137,7 +135,7 @@ private:
   string d_ActivateDomainKeyQuery;
   string d_DeactivateDomainKeyQuery;
   string d_ClearDomainAllKeysQuery;
-  
+
   string d_getTSIGKeyQuery;
   string d_setTSIGKeyQuery;
   string d_deleteTSIGKeyQuery;
@@ -145,6 +143,6 @@ private:
 
   string d_getAllDomainsQuery;
 
-protected:  
+protected:
   bool d_dnssecQueries;
 };