Index: base/task.cc |
diff --git a/base/task.cc b/base/task.cc |
index 38ac08660baed3bca9b1d2071b8bef02b85af73f..5d40e55cd9e2c4c2b4aa399f3040d82a8132388a 100644 |
--- a/base/task.cc |
+++ b/base/task.cc |
@@ -4,12 +4,6 @@ |
#include "base/task.h" |
-Task::Task() { |
-} |
- |
-Task::~Task() { |
-} |
- |
namespace base { |
ScopedClosureRunner::ScopedClosureRunner(const Closure& closure) |
@@ -27,33 +21,4 @@ Closure ScopedClosureRunner::Release() { |
return result; |
} |
-namespace subtle { |
- |
-TaskClosureAdapter::TaskClosureAdapter(Task* task) |
- : task_(task), |
- should_leak_task_(&kTaskLeakingDefault) { |
-} |
- |
-TaskClosureAdapter::TaskClosureAdapter(Task* task, bool* should_leak_task) |
- : task_(task), |
- should_leak_task_(should_leak_task) { |
-} |
- |
-TaskClosureAdapter::~TaskClosureAdapter() { |
- if (!*should_leak_task_) { |
- delete task_; |
- } |
-} |
- |
-void TaskClosureAdapter::Run() { |
- task_->Run(); |
- delete task_; |
- task_ = NULL; |
-} |
- |
-// Don't leak tasks by default. |
-bool TaskClosureAdapter::kTaskLeakingDefault = false; |
- |
-} // namespace subtle |
- |
} // namespace base |