summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-27 02:46:05 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-27 02:46:05 +0000
commitcef372905872fa0c92ed9a163cfa3cc66bde87f1 (patch)
tree352a6540642497068bfec633c8dc3a0f486ab73f /base
parentcac326b5df02531fd2f37c83a2f0872166f12195 (diff)
downloadchromium_src-cef372905872fa0c92ed9a163cfa3cc66bde87f1.zip
chromium_src-cef372905872fa0c92ed9a163cfa3cc66bde87f1.tar.gz
chromium_src-cef372905872fa0c92ed9a163cfa3cc66bde87f1.tar.bz2
Delete some dead code.
Found by a tweaked -Wunused-member-function Nuno Lopes is working on. BUG=none R=brettw@chromium.org, miket@chromium.org, rsleevi@chromium.org, sky@chromium.org TBR=rogerta, sky Review URL: https://codereview.chromium.org/213363003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/bind_unittest.cc4
-rw-r--r--base/message_loop/message_loop_unittest.cc25
-rw-r--r--base/prefs/pref_notifier_impl_unittest.cc7
-rw-r--r--base/synchronization/condition_variable_unittest.cc5
4 files changed, 0 insertions, 41 deletions
diff --git a/base/bind_unittest.cc b/base/bind_unittest.cc
index 2c93d53..e1f15cb 100644
--- a/base/bind_unittest.cc
+++ b/base/bind_unittest.cc
@@ -127,10 +127,6 @@ class CopyCounter {
return *copies_;
}
- int assigns() const {
- return *assigns_;
- }
-
private:
int* copies_;
int* assigns_;
diff --git a/base/message_loop/message_loop_unittest.cc b/base/message_loop/message_loop_unittest.cc
index 4637165..7ccee73 100644
--- a/base/message_loop/message_loop_unittest.cc
+++ b/base/message_loop/message_loop_unittest.cc
@@ -53,36 +53,11 @@ class Foo : public RefCounted<Foo> {
Foo() : test_count_(0) {
}
- void Test0() {
- ++test_count_;
- }
-
void Test1ConstRef(const std::string& a) {
++test_count_;
result_.append(a);
}
- void Test1Ptr(std::string* a) {
- ++test_count_;
- result_.append(*a);
- }
-
- void Test1Int(int a) {
- test_count_ += a;
- }
-
- void Test2Ptr(std::string* a, std::string* b) {
- ++test_count_;
- result_.append(*a);
- result_.append(*b);
- }
-
- void Test2Mixed(const std::string& a, std::string* b) {
- ++test_count_;
- result_.append(a);
- result_.append(*b);
- }
-
int test_count() const { return test_count_; }
const std::string& result() const { return result_; }
diff --git a/base/prefs/pref_notifier_impl_unittest.cc b/base/prefs/pref_notifier_impl_unittest.cc
index 29ea322..8482c02 100644
--- a/base/prefs/pref_notifier_impl_unittest.cc
+++ b/base/prefs/pref_notifier_impl_unittest.cc
@@ -80,13 +80,6 @@ class PrefObserverMock : public PrefObserver {
virtual ~PrefObserverMock() {}
MOCK_METHOD2(OnPreferenceChanged, void(PrefService*, const std::string&));
-
- void Expect(PrefService* prefs,
- const std::string& pref_name,
- const base::Value* value) {
- EXPECT_CALL(*this, OnPreferenceChanged(prefs, pref_name))
- .With(PrefValueMatches(prefs, pref_name, value));
- }
};
// Test fixture class.
diff --git a/base/synchronization/condition_variable_unittest.cc b/base/synchronization/condition_variable_unittest.cc
index ee554ff..5f947a9 100644
--- a/base/synchronization/condition_variable_unittest.cc
+++ b/base/synchronization/condition_variable_unittest.cc
@@ -101,7 +101,6 @@ class WorkQueue : public PlatformThread::Delegate {
int GetNumThreadsTakingAssignments() const;
int GetNumThreadsCompletingTasks() const;
int GetNumberOfCompletedTasks() const;
- TimeDelta GetWorkTime() const;
void SetWorkTime(TimeDelta delay);
void SetTaskCount(int count);
@@ -651,10 +650,6 @@ int WorkQueue::GetNumberOfCompletedTasks() const {
return total;
}
-TimeDelta WorkQueue::GetWorkTime() const {
- return worker_delay_;
-}
-
void WorkQueue::SetWorkTime(TimeDelta delay) {
worker_delay_ = delay;
}