| Index: third_party/WebKit/Source/wtf/OwnPtr.h
|
| diff --git a/third_party/WebKit/Source/wtf/OwnPtr.h b/third_party/WebKit/Source/wtf/OwnPtr.h
|
| index d8a12f3397209a389e0d42e8e77722c2f7cdf36b..f8c05b619dfce591d4cfea69dd2e6fe5e9836786 100644
|
| --- a/third_party/WebKit/Source/wtf/OwnPtr.h
|
| +++ b/third_party/WebKit/Source/wtf/OwnPtr.h
|
| @@ -60,7 +60,6 @@ public:
|
| PtrType get() const { return m_ptr; }
|
|
|
| void clear();
|
| - PassOwnPtr<T> release();
|
| PtrType leakPtr() WARN_UNUSED_RETURN;
|
|
|
| ValueType& operator*() const { ASSERT(m_ptr); return *m_ptr; }
|
| @@ -110,13 +109,6 @@ template <typename T> inline void OwnPtr<T>::clear()
|
| OwnedPtrDeleter<T>::deletePtr(ptr);
|
| }
|
|
|
| -template <typename T> inline PassOwnPtr<T> OwnPtr<T>::release()
|
| -{
|
| - PtrType ptr = m_ptr;
|
| - m_ptr = nullptr;
|
| - return PassOwnPtr<T>(ptr);
|
| -}
|
| -
|
| template <typename T> inline typename OwnPtr<T>::PtrType OwnPtr<T>::leakPtr()
|
| {
|
| PtrType ptr = m_ptr;
|
|
|