Index: base/bind_helpers.h |
diff --git a/base/bind_helpers.h b/base/bind_helpers.h |
index 0cfaab7ece74a5d07817313f977fb919a365c9ff..d717892c8f51e316fe4069192e4f7ec7b408a93a 100644 |
--- a/base/bind_helpers.h |
+++ b/base/bind_helpers.h |
@@ -139,10 +139,6 @@ |
// pointer when invoked. Only use this when necessary. |
// In most cases MessageLoop::DeleteSoon() is a better |
// fit. |
-// ScopedClosureRunner - Scoper object that runs the wrapped closure when it |
-// goes out of scope. It's conceptually similar to |
-// scoped_ptr<> but calls Run() instead of deleting |
-// the pointer. |
#ifndef BASE_BIND_HELPERS_H_ |
#define BASE_BIND_HELPERS_H_ |
@@ -543,21 +539,6 @@ void DeletePointer(T* obj) { |
delete obj; |
} |
-// ScopedClosureRunner is akin to scoped_ptr for Closures. It ensures that the |
-// Closure is executed and deleted no matter how the current scope exits. |
-class BASE_EXPORT ScopedClosureRunner { |
- public: |
- explicit ScopedClosureRunner(const Closure& closure); |
- ~ScopedClosureRunner(); |
- |
- Closure Release(); |
- |
- private: |
- Closure closure_; |
- |
- DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedClosureRunner); |
-}; |
- |
} // namespace base |
#endif // BASE_BIND_HELPERS_H_ |