]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: remove an unused variable from the querycache 11687/head
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 8 Jun 2022 16:14:48 +0000 (18:14 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 8 Jun 2022 16:14:48 +0000 (18:14 +0200)
pdns/auth-querycache.cc
pdns/auth-querycache.hh

index dea4583e9f3f1e239fea58f9e0c3d8b2e8ec8bb6..b397c1e830454aae92ee33792885d248afdcb41e 100644 (file)
@@ -76,10 +76,9 @@ void AuthQueryCache::insert(const DNSName &qname, const QType& qtype, vector<DNS
 
   if(!ttl)
     return;
-  
+
   time_t now = time(nullptr);
   CacheEntry val;
-  val.created = now;
   val.ttd = now + ttl;
   val.qname = qname;
   val.qtype = qtype.getCode();
index 20c8ffb4d4bcbd46008a25da799024e85eeba321..54a46b879bb6e48af90a947b62963731d00c2822 100644 (file)
@@ -67,7 +67,6 @@ private:
   {
     DNSName qname;
     mutable vector<DNSZoneRecord> drs;
-    mutable time_t created{0};
     mutable time_t ttd{0};
     uint16_t qtype{0};
     int zoneID{-1};