Index: base/task.h |
diff --git a/base/task.h b/base/task.h |
index b546af5193347c02c31174c0f3c623b1bde0e7f7..c83a8b1e87df176be132162bf09371a8fc359c6f 100644 |
--- a/base/task.h |
+++ b/base/task.h |
@@ -205,26 +205,7 @@ class ScopedRunnableMethodFactory { |
base::WeakPtrFactory<T> weak_factory_; |
}; |
-// General task implementations ------------------------------------------------ |
- |
-// Task to delete an object |
-template<class T> |
-class DeleteTask : public CancelableTask { |
- public: |
- explicit DeleteTask(const T* obj) : obj_(obj) { |
- } |
- virtual void Run() { |
- delete obj_; |
- } |
- virtual void Cancel() { |
- obj_ = NULL; |
- } |
- |
- private: |
- const T* obj_; |
-}; |
- |
-// Equivalents for use by base::Bind(). |
+// Delete helper for use with base::Bind(). |
template<typename T> |
void DeletePointer(T* obj) { |
delete obj; |