Browse Source

[3073] Rremove incorrect checks for empty() that caused test failures

Kean Johnston 11 years ago
parent
commit
d1397da715
2 changed files with 1 additions and 6 deletions
  1. 0 4
      src/lib/datasrc/client_list.cc
  2. 1 2
      src/lib/server_common/portconfig.cc

+ 0 - 4
src/lib/datasrc/client_list.cc

@@ -84,10 +84,6 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
         isc_throw(isc::BadValue, "NULL configuration passed");
     }
 
-    if (config->empty()) {
-        return;
-    }
-
     // TODO: Implement recycling from the old configuration.
     size_t i(0); // Outside of the try to be able to access it in the catch
     try {

+ 1 - 2
src/lib/server_common/portconfig.cc

@@ -37,8 +37,7 @@ parseAddresses(isc::data::ConstElementPtr addresses,
 {
     AddressList result;
     if (addresses) {
-        if (addresses->getType() == Element::list &&
-            !addresses->empty() ) {
+        if (addresses->getType() == Element::list) {
             for (size_t i(0); i < addresses->size(); ++ i) {
                 ConstElementPtr addrPair(addresses->get(i));
                 ConstElementPtr addr(addrPair->get("address"));