diff --git a/include/v8.h b/include/v8.h index 03eab7872f..a17d59dbb1 100644 --- a/include/v8.h +++ b/include/v8.h @@ -697,9 +697,6 @@ template class Persistent : public PersistentBase { return Persistent::Cast(*this); } - // This will be removed. - V8_INLINE T* ClearAndLeak(); - private: friend class Isolate; friend class Utils; @@ -6245,15 +6242,6 @@ void PersistentBase::MarkPartiallyDependent() { } -template -T* Persistent::ClearAndLeak() { - T* old; - old = this->val_; - this->val_ = NULL; - return old; -} - - template void PersistentBase::SetWrapperClassId(uint16_t class_id) { typedef internal::Internals I;