Remove PersistentBase::ClearAndLeak
authorjochen@chromium.org <jochen@chromium.org>
Tue, 7 Oct 2014 12:37:27 +0000 (12:37 +0000)
committerjochen@chromium.org <jochen@chromium.org>
Tue, 7 Oct 2014 12:37:27 +0000 (12:37 +0000)
Embedders that used this method to be able to store a Persistent in a
container should use one of the containers in v8-util.h instead.

Other uses are no longer supported.

BUG=none
R=dcarney@chromium.org
LOG=y

Review URL: https://codereview.chromium.org/635513002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24436 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

include/v8.h

index 03eab78..a17d59d 100644 (file)
@@ -697,9 +697,6 @@ template <class T, class M> class Persistent : public PersistentBase<T> {
     return Persistent<S>::Cast(*this);
   }
 
-  // This will be removed.
-  V8_INLINE T* ClearAndLeak();
-
  private:
   friend class Isolate;
   friend class Utils;
@@ -6245,15 +6242,6 @@ void PersistentBase<T>::MarkPartiallyDependent() {
 }
 
 
-template <class T, class M>
-T* Persistent<T, M>::ClearAndLeak() {
-  T* old;
-  old = this->val_;
-  this->val_ = NULL;
-  return old;
-}
-
-
 template <class T>
 void PersistentBase<T>::SetWrapperClassId(uint16_t class_id) {
   typedef internal::Internals I;