]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] cleanup: removed dead code.
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 20 Sep 2012 17:44:24 +0000 (10:44 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 20 Sep 2012 17:44:24 +0000 (10:44 -0700)
I suspect it was a leftover of an intermediate attempt that ended up with
    found = RdataSet::find(node->getData(), type);
at commi 32f6a873.

Whatever the intent was, it's clear the code does nothing, so cleaning it
up shouldn't harm anyway.

okayed on jabber.

src/lib/datasrc/memory/zone_finder.cc

index 75d318755130c0dd25e39d2abef26c6ccd6e8bc0..cb56b8f8b6a95429e84783925d27f3757c43f4cf 100644 (file)
@@ -561,10 +561,6 @@ InMemoryZoneFinder::find_internal(const isc::dns::Name& name,
                                  wild, &name));
     }
 
-    const RdataSet* currds = node->getData();
-    while (currds != NULL) {
-        currds = currds->getNext();
-    }
     found = RdataSet::find(node->getData(), type);
     if (found != NULL) {
         // Good, it is here