Index: base/task.h |
diff --git a/base/task.h b/base/task.h |
index 7e87ff72abc4067e94190f2c459b0363707c83a2..b546af5193347c02c31174c0f3c623b1bde0e7f7 100644 |
--- a/base/task.h |
+++ b/base/task.h |
@@ -224,35 +224,12 @@ class DeleteTask : public CancelableTask { |
const T* obj_; |
}; |
-// Task to Release() an object |
-template<class T> |
-class ReleaseTask : public CancelableTask { |
- public: |
- explicit ReleaseTask(const T* obj) : obj_(obj) { |
- } |
- virtual void Run() { |
- if (obj_) |
- obj_->Release(); |
- } |
- virtual void Cancel() { |
- obj_ = NULL; |
- } |
- |
- private: |
- const T* obj_; |
-}; |
- |
// Equivalents for use by base::Bind(). |
template<typename T> |
void DeletePointer(T* obj) { |
delete obj; |
} |
-template<typename T> |
-void ReleasePointer(T* obj) { |
- obj->Release(); |
-} |
- |
// RunnableMethodTraits -------------------------------------------------------- |
// |
// This traits-class is used by RunnableMethod to manage the lifetime of the |