]> granicus.if.org Git - pdns/commitdiff
remove unused variables from speedtest.cc
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 6 Mar 2014 21:06:57 +0000 (22:06 +0100)
committermind04 <mind04@monshouwer.org>
Thu, 6 Mar 2014 21:06:57 +0000 (22:06 +0100)
pdns/speedtest.cc

index bce5dda1f85fc7e4f9e995c97c859caf3b27162e..0dc018d6357f58272810563ae4dc3b5a918c306a 100644 (file)
@@ -562,7 +562,7 @@ struct ParsePacketTest
       set<string, CIStringCompare> nsset;  
       // LOG<<prefix<<qname<<": determining status after receiving this packet"<<endl;
 
-      bool done=false, realreferral=false, negindic=false;
+      bool done=false;
       string newauth, soaname, newtarget;
       string qname(".");
       vector<DNSResourceRecord> ret;
@@ -586,7 +586,6 @@ struct ParsePacketTest
             // Lock l(&s_negcachelock);
             // replacing_insert(s_negcache, ne);
           }
-          negindic=true;
         }
         else if(i->d_place==DNSResourceRecord::ANSWER && pdns_iequals(i->qname, qname) && i->qtype.getCode()==QType::CNAME && (!(qtype==QType(QType::CNAME)))) {
           ret.push_back(*i);
@@ -609,7 +608,6 @@ struct ParsePacketTest
           if(moreSpecificThan(i->qname,auth)) {
             newauth=i->qname;
             // LOG<<prefix<<qname<<": got NS record '"<<i->qname<<"' -> '"<<i->content<<"'"<<endl;
-            realreferral=true;
           }
           else 
             ;// // LOG<<prefix<<qname<<": got upwards/level NS record '"<<i->qname<<"' -> '"<<i->content<<"', had '"<<auth<<"'"<<endl;
@@ -629,7 +627,6 @@ struct ParsePacketTest
            // Lock l(&s_negcachelock);
             // replacing_insert(s_negcache, ne);
           }
-          negindic=true;
         }
       }