From: Peter van Dijk Date: Tue, 3 Dec 2013 08:31:18 +0000 (+0100) Subject: drop unused vars, thanks Morten Stevens X-Git-Tag: rec-3.6.0-rc1~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c14825851543b83dd51a1fb0cabdc6f0536e2271;p=pdns drop unused vars, thanks Morten Stevens --- diff --git a/modules/luabackend/dnssec.cc b/modules/luabackend/dnssec.cc index 3529a08d0..0988b2887 100644 --- a/modules/luabackend/dnssec.cc +++ b/modules/luabackend/dnssec.cc @@ -405,7 +405,6 @@ bool LUABackend::getDomainKeys(const string& name, unsigned int kind, std::vecto lua_pushnil(lua); - int key; int j = 0; while (lua_next(lua, -2)) { @@ -426,7 +425,6 @@ bool LUABackend::getDomainKeys(const string& name, unsigned int kind, std::vecto } lua_pop(lua,1); - key = lua_tonumber(lua, -1); } if(logging) @@ -550,7 +548,6 @@ bool LUABackend::getDomainMetadata(const string& name, const std::string& kind, lua_pushnil(lua); - int key; int j = 0; size_t returnedwhat; @@ -562,7 +559,6 @@ bool LUABackend::getDomainMetadata(const string& name, const std::string& kind, } lua_pop(lua,1); - key = lua_tonumber(lua, -1); } if(logging) @@ -594,7 +590,6 @@ void LUABackend::alsoNotifies(const string &domain, set *ips) { lua_pushnil(lua); - int key; size_t returnedwhat; while (lua_next(lua, -2)) { @@ -604,7 +599,6 @@ void LUABackend::alsoNotifies(const string &domain, set *ips) { } lua_pop(lua,1); - key = lua_tonumber(lua, -1); } if(logging)