Commit 304d91d2 authored by jochen@chromium.org's avatar jochen@chromium.org

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
parent 5e21a972
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment