]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
removed unused variables 7969/head
authorfwsmit <fw.smit01@gmail.com>
Fri, 21 Jun 2019 09:33:24 +0000 (11:33 +0200)
committerfwsmit <fw.smit01@gmail.com>
Fri, 21 Jun 2019 09:33:24 +0000 (11:33 +0200)
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) {