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
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
This commit is contained in:
jochen@chromium.org 2014-10-07 12:37:27 +00:00
parent 5e21a9723b
commit 304d91d2a7

View 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;