From: fwsmit Date: Fri, 21 Jun 2019 09:33:24 +0000 (+0200) Subject: removed unused variables X-Git-Tag: dnsdist-1.4.0-rc1~81^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7969%2Fhead;p=thirdparty%2Fpdns.git removed unused variables --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 12bbaa6621..623b4bee07 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -534,7 +534,7 @@ std::vector> luaSynth(const std::string& code, cons }); - lua.writeFunction("createReverse", [&bestwho,&query,&zone](string suffix, boost::optional> e){ + lua.writeFunction("createReverse", [&query](string suffix, boost::optional> e){ try { auto labels= query.getRawLabels(); if(labels.size()<4) @@ -616,7 +616,7 @@ std::vector> luaSynth(const std::string& code, cons }); - lua.writeFunction("createReverse6", [&bestwho,&query,&zone](string suffix, boost::optional> e){ + lua.writeFunction("createReverse6", [&query](string suffix, boost::optional> e){ vector candidates; try { @@ -802,8 +802,7 @@ std::vector> luaSynth(const std::string& code, cons }); - int counter=0; - lua.writeFunction("report", [&counter](string event, boost::optional line){ + lua.writeFunction("report", [](string event, boost::optional line){ throw std::runtime_error("Script took too long"); }); if (g_luaRecordExecLimit > 0) {