From 304d91d2a7718b7122f429a714fc99cfc63dae36 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Tue, 7 Oct 2014 12:37:27 +0000 Subject: [PATCH] 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 --- include/v8.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/v8.h b/include/v8.h index 03eab78..a17d59d 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; -- 2.7.4