From 7bee3c6f6693a2e779442144a24b76d622a0a786 Mon Sep 17 00:00:00 2001 From: fwsmit Date: Fri, 21 Jun 2019 11:33:24 +0200 Subject: [PATCH] removed unused variables (cherry picked from commit 17e300d77b3f68367e8f7b76dbf629c45e8604cc) --- pdns/lua-record.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 12bbaa662..623b4bee0 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) { -- 2.40.0