]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2209] Remove unused memory segment
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 29 Oct 2012 12:23:51 +0000 (13:23 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 29 Oct 2012 12:28:41 +0000 (13:28 +0100)
src/lib/datasrc/client_list.cc
src/lib/datasrc/client_list.h

index d28b822bfc3b9a405a5a058b6bc643f45cf8279e..e7fb63b9dc0222d0e0f34956968bde4b80296a91 100644 (file)
@@ -72,21 +72,10 @@ ConfigurableClientList::DataSourceInfo::getCacheClient() const {
 
 ConfigurableClientList::ConfigurableClientList(const RRClass& rrclass) :
     rrclass_(rrclass),
-    mem_sgmt_(new util::MemorySegmentLocal),
     configuration_(new isc::data::ListElement),
     allow_cache_(false)
 {}
 
-ConfigurableClientList::~ConfigurableClientList() {
-    // Explicitly clear the contained data source clients, and check memory
-    // leak.  assert() (with abort on failure) may be too harsh, but
-    // it's probably better to find more leaks initially.  Once it's stabilized
-    // we should probably revisit it.
-
-    data_sources_.clear();
-    assert(mem_sgmt_->allMemoryDeallocated());
-}
-
 void
 ConfigurableClientList::configure(const ConstElementPtr& config,
                                   bool allow_cache)
index 5f792378bc756f1326ca1779c7a09809326720dc..c78b21e2c9462466c435a8a42976c17308ef351e 100644 (file)
@@ -222,9 +222,6 @@ public:
     /// \param rrclass For which class the list should work.
     ConfigurableClientList(const isc::dns::RRClass& rrclass);
 
-    /// \brief Destructor
-    virtual ~ConfigurableClientList();
-
     /// \brief Exception thrown when there's an error in configuration.
     class ConfigurationError : public Exception {
     public:
@@ -408,12 +405,6 @@ private:
                       bool want_exact_match, bool want_finder) const;
     const isc::dns::RRClass rrclass_;
 
-    /// \brief Memory segment for in-memory cache.
-    ///
-    /// Note that this must be placed before data_sources_ so it won't be
-    /// destroyed before the built objects in the destructor.
-    boost::scoped_ptr<util::MemorySegment> mem_sgmt_;
-
     /// \brief Currently active configuration.
     isc::data::ConstElementPtr configuration_;