Reviewers: dcarney,

Description:
Remove PersistentBase::ClearAndLeak

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
[email protected]
LOG=y

Please review this at https://codereview.chromium.org/635513002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+0, -12 lines):
  M include/v8.h


Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 7a1c479cc427d69abeecd1e235f2e979e1859e3c..15d9931a6fa625c6c0d6f86fdd615523855d557b 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -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;
@@ -6226,15 +6223,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;


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to