Browse Source

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

Jelte Jansen 13 years ago
parent
commit
701ffebae5
1 changed files with 4 additions and 8 deletions
  1. 4 8
      src/lib/datasrc/memory_datasrc.cc

+ 4 - 8
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