]> granicus.if.org Git - pdns/commitdiff
luabackend: remove dead returns
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 8 Sep 2013 11:54:17 +0000 (13:54 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 8 Sep 2013 16:25:51 +0000 (18:25 +0200)
modules/luabackend/minimal.cc
modules/luabackend/reload.cc
modules/luabackend/slave.cc
pdns/lua-auth.cc

index f3b27bd32dab2cf3f608ace7d445b00b846aab34..3229b3d939782318bb200a9fd578e7a255c006c5 100644 (file)
@@ -72,7 +72,6 @@ bool LUABackend::list(const string &target, int domain_id) {
        lua_pop(lua, 1);
        
        throw runtime_error(e);
-       return false;
     }
     
     size_t returnedwhat = lua_type(lua, -1);
index 0be7347b231ea8e7706b0c2a7a640b638eb4aff0..d8ab75cf672f4df047dca1d98d2cc825def04b3c 100644 (file)
@@ -168,7 +168,6 @@ void LUABackend::rediscover(string* status) {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
index a77b64ec74aa31eb17fd7e8719fc0b4446dbe7be..a2d2959a1a2c706848f11fdb8d5ffa54998fdebc 100644 (file)
@@ -52,7 +52,6 @@ bool LUABackend::startTransaction(const string &qname, int id) {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return false;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
@@ -84,7 +83,6 @@ bool LUABackend::commitTransaction() {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return false;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
@@ -116,7 +114,6 @@ bool LUABackend::abortTransaction() {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return false;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
@@ -148,7 +145,6 @@ bool LUABackend::feedRecord(const DNSResourceRecord &rr) {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return false;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
@@ -239,7 +235,6 @@ bool LUABackend::isMaster(const string &domain, const string &ip) {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return false;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
@@ -272,7 +267,6 @@ bool LUABackend::getDomainInfo(const string &domain, DomainInfo &di) {
         lua_pop(lua, 1);
 
         throw runtime_error(e);
-        return false;
     }
 
     size_t returnedwhat = lua_type(lua, -1);
index effcdf06211356380b2aa0463c45b55da9e7d6df..1bd732faf5a1445d098e00d7718d81bea874b1b7 100644 (file)
@@ -232,7 +232,6 @@ DNSPacket* AuthLua::prequery(DNSPacket *p)
 
     lua_pop(d_lua, 1);
     throw runtime_error(error);
-    return 0;
   }
   bool res=lua_toboolean(d_lua, 1);
   lua_pop(d_lua, 1);