BIND 10 trac1217, updated. 701ffebae5b357a693e764bbef904dc374ebb591 [1217] ignore value if we don't use it

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Nov 1 11:12:56 UTC 2011


The branch, trac1217 has been updated
       via  701ffebae5b357a693e764bbef904dc374ebb591 (commit)
      from  e16e284794d66212aec735ece0ee1fc112f2d2db (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 701ffebae5b357a693e764bbef904dc374ebb591
Author: Jelte Jansen <jelte at isc.org>
Date:   Tue Nov 1 12:12:40 2011 +0100

    [1217] ignore value if we don't use it

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/memory_datasrc.cc |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory_datasrc.cc b/src/lib/datasrc/memory_datasrc.cc
index 90af3fd..6612a28 100644
--- a/src/lib/datasrc/memory_datasrc.cc
+++ b/src/lib/datasrc/memory_datasrc.cc
@@ -730,13 +730,10 @@ private:
     const DomainTree& tree_;
     const DomainNode* node_;
     bool ready_;
-    bool individual_rrs_;
 public:
-    MemoryIterator(const DomainTree& tree, const Name& origin,
-                   bool individual_rrs) :
+    MemoryIterator(const DomainTree& tree, const Name& origin) :
         tree_(tree),
-        ready_(true),
-        individual_rrs_(individual_rrs)
+        ready_(true)
     {
         // Find the first node (origin) and preserve the node chain for future
         // searches
@@ -788,7 +785,7 @@ public:
 } // End of anonymous namespace
 
 ZoneIteratorPtr
-InMemoryClient::getIterator(const Name& name, bool individual_rrs) const {
+InMemoryClient::getIterator(const Name& name, bool) const {
     ZoneTable::FindResult result(impl_->zone_table.findZone(name));
     if (result.code != result::SUCCESS) {
         isc_throw(DataSourceError, "No such zone: " + name.toText());
@@ -806,8 +803,7 @@ InMemoryClient::getIterator(const Name& name, bool individual_rrs) const {
         isc_throw(Unexpected, "The zone at " + name.toText() +
                   " is not InMemoryZoneFinder");
     }
-    return (ZoneIteratorPtr(new MemoryIterator(zone->impl_->domains_, name,
-                                               individual_rrs)));
+    return (ZoneIteratorPtr(new MemoryIterator(zone->impl_->domains_, name)));
 }
 
 ZoneUpdaterPtr




More information about the bind10-changes mailing list