From 7881a640399f10e858ced5341c49638ba5ddc5d6 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 2 Nov 2017 15:05:18 +0100 Subject: [PATCH] rec: Remove unneeded speed variable --- pdns/syncres.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 5795cbf03..d79636a5b 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -692,9 +692,7 @@ vector SyncRes::getAddrs(const DNSName &qname, unsigned int depth, map speeds; auto& collection = t_sstorage.nsSpeeds[qname].d_collection; for(const auto& val: ret) { - double speed; - speed=collection[val].get(&d_now); - speeds[val]=speed; + speeds[val] = collection[val].get(&d_now); } t_sstorage.nsSpeeds[qname].purge(speeds); -- 2.40.0