]> granicus.if.org Git - pdns/commitdiff
removed unused variables
authorfwsmit <fw.smit01@gmail.com>
Fri, 21 Jun 2019 09:33:24 +0000 (11:33 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 1 Jul 2019 20:36:42 +0000 (22:36 +0200)
(cherry picked from commit 17e300d77b3f68367e8f7b76dbf629c45e8604cc)

pdns/lua-record.cc

index 12bbaa662105be7de225d2ff0805c09778f48a2b..623b4bee07de1cbe6cb4cee8b1a7de1041b19086 100644 (file)
@@ -534,7 +534,7 @@ std::vector<shared_ptr<DNSRecordContent>> luaSynth(const std::string& code, cons
     });
 
 
-  lua.writeFunction("createReverse", [&bestwho,&query,&zone](string suffix, boost::optional<std::unordered_map<string,string>> e){
+  lua.writeFunction("createReverse", [&query](string suffix, boost::optional<std::unordered_map<string,string>> e){
       try {
       auto labels= query.getRawLabels();
       if(labels.size()<4)
@@ -616,7 +616,7 @@ std::vector<shared_ptr<DNSRecordContent>> luaSynth(const std::string& code, cons
     });
 
 
-  lua.writeFunction("createReverse6", [&bestwho,&query,&zone](string suffix, boost::optional<std::unordered_map<string,string>> e){
+  lua.writeFunction("createReverse6", [&query](string suffix, boost::optional<std::unordered_map<string,string>> e){
       vector<ComboAddress> candidates;
 
       try {
@@ -802,8 +802,7 @@ std::vector<shared_ptr<DNSRecordContent>> luaSynth(const std::string& code, cons
     });
 
 
-  int counter=0;
-  lua.writeFunction("report", [&counter](string event, boost::optional<string> line){
+  lua.writeFunction("report", [](string event, boost::optional<string> line){
       throw std::runtime_error("Script took too long");
     });
   if (g_luaRecordExecLimit > 0) {