From cc4fcf8e9ba7af2ad31e2b6fdd107431ca0dba77 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Fri, 4 Dec 2009 11:25:20 +0000
Subject: [PATCH] Remove method deallocate() which is not part of the standard.

A proper cast-to-bool is still missing.

[[Imported from SVN: r5734]]
---
 dune/common/shared_ptr.hh | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/dune/common/shared_ptr.hh b/dune/common/shared_ptr.hh
index 64a4b927c..fb8de3e87 100644
--- a/dune/common/shared_ptr.hh
+++ b/dune/common/shared_ptr.hh
@@ -95,12 +95,6 @@ namespace Dune
      */
     inline void reset();
 
-    /**
-     * @brief Deallocates the references object if no other
-     * pointers reference it.
-     */
-    inline void deallocate();
-
     /** \brief The number of shared_ptrs pointing to the object we point to */
     int use_count() const;
 
@@ -197,13 +191,6 @@ namespace Dune
     }
   }
 
-  template<class T>
-  inline void shared_ptr<T>::deallocate()
-  {
-    assert(rep_!=0 && rep_->count_==1);
-    delete rep_;
-    rep_=0;
-  }
   /** @} */
 #endif  // #ifdef SHARED_PTR_NAMESPACE
 
-- 
GitLab