Permalink
Browse files

drop unused variables in lua backend (#653)

  • Loading branch information...
1 parent d8ec70f commit 664716a377b26e877435816cb3902ae69942961e @Habbie Habbie committed May 16, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 modules/luabackend/private.cc
@@ -60,12 +60,10 @@ bool LUABackend::domaininfo_from_table(DomainInfo *di) {
if(!lua_isnil(lua, -1)) {
lua_pushnil(lua);
- const char *key, *value;
+ const char *value;
while (lua_next(lua, -2)) {
value = lua_tostring(lua, -1);
lua_pop(lua,1);
- key = lua_tostring(lua, -1);
-
di->masters.push_back(value);
}
}
@@ -80,7 +78,6 @@ bool LUABackend::domaininfo_from_table(DomainInfo *di) {
void LUABackend::domains_from_table(vector<DomainInfo>* domains, const char *f_name) {
lua_pushnil(lua);
- int k;
size_t returnedwhat;
while (lua_next(lua, -2)) {
@@ -93,7 +90,6 @@ void LUABackend::domains_from_table(vector<DomainInfo>* domains, const char *f_n
}
lua_pop(lua,1);
- k = lua_tonumber(lua, -1);
}
}
@@ -126,4 +122,4 @@ void LUABackend::dnsrr_to_table(lua_State *lua, const DNSResourceRecord *rr) {
lua_pushstring(lua, rr->content.c_str());
lua_settable(lua, -3);
-}
+}

0 comments on commit 664716a

Please sign in to comment.