base::Bind: Remove Task.
BUG=none
TEST=none
R=awong
Review URL: http://codereview.chromium.org/9086002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116439 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: e7b3a61984f86ccb238664542699c3b8a75b54c6
diff --git a/base/task.cc b/base/task.cc
index 38ac086..baf4e0f 100644
--- a/base/task.cc
+++ b/base/task.cc
@@ -1,15 +1,9 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/task.h"
-Task::Task() {
-}
-
-Task::~Task() {
-}
-
namespace base {
ScopedClosureRunner::ScopedClosureRunner(const Closure& closure)
@@ -27,33 +21,4 @@
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