Index: third_party/WebKit/Source/platform/heap/Handle.h |
diff --git a/third_party/WebKit/Source/platform/heap/Handle.h b/third_party/WebKit/Source/platform/heap/Handle.h |
index 9aaa593522e4a1e9e9585f0accad5d2cd2bf643d..eb6516101cf3a74cb79363735e08ec55db2f6887 100644 |
--- a/third_party/WebKit/Source/platform/heap/Handle.h |
+++ b/third_party/WebKit/Source/platform/heap/Handle.h |
@@ -1019,30 +1019,6 @@ public: |
using Type = Member<T>; |
}; |
-// Abstraction for injecting calls to an object's 'dispose()' method |
-// on leaving a stack scope, ensuring earlier release of resources |
-// than waiting until the object is eventually GCed. |
-template<typename T, void (T::*Disposer)() = (&T::dispose)> |
-class ScopedDisposal { |
- STACK_ALLOCATED(); |
-public: |
- ScopedDisposal(T* object) |
- : m_object(object) |
- { |
- } |
- |
- ~ScopedDisposal() |
- { |
- if (m_object) |
- (m_object->*Disposer)(); |
- } |
- |
- void clear() { m_object.clear(); } |
- |
-private: |
- typename RawPtrOrMemberTrait<T>::Type m_object; |
sof
2016/04/16 05:25:16
This was/is the sole use of this trait.
ftr, I do
|
-}; |
- |
// SelfKeepAlive<Object> is the idiom to use for objects that have to keep |
// themselves temporarily alive and cannot rely on there being some |
// external reference in that interval: |