summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-27 16:07:34 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-27 16:07:34 +0000
commit281bc5ba1878f3c4b9c638e89d73aa5549b20d76 (patch)
tree3e5b7cf0f17de7ae77903b6c58dd973af0806a09 /ipc
parent1096fca67d8f9133c61ccb20e24aea1bee3adb4a (diff)
downloadchromium_src-281bc5ba1878f3c4b9c638e89d73aa5549b20d76.zip
chromium_src-281bc5ba1878f3c4b9c638e89d73aa5549b20d76.tar.gz
chromium_src-281bc5ba1878f3c4b9c638e89d73aa5549b20d76.tar.bz2
Remove unused fields found by clang's new Wunused-private-fields.
Test file edition. BUG=none TEST=none TBR=remaining owners Review URL: https://chromiumcodereview.appspot.com/10680013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_sync_channel_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc
index a42196b..f6a6598 100644
--- a/ipc/ipc_sync_channel_unittest.cc
+++ b/ipc/ipc_sync_channel_unittest.cc
@@ -1483,7 +1483,6 @@ class RestrictedDispatchDeadlockClient2 : public Worker {
WaitableEvent* server_ready_event,
WaitableEvent** events)
: Worker("channel2", Channel::MODE_CLIENT),
- server_(server),
server_ready_event_(server_ready_event),
events_(events),
received_msg_(false),
@@ -1529,7 +1528,6 @@ class RestrictedDispatchDeadlockClient2 : public Worker {
}
}
- RestrictedDispatchDeadlockServer* server_;
WaitableEvent* server_ready_event_;
WaitableEvent** events_;
bool received_msg_;
@@ -1912,6 +1910,9 @@ class VerifiedClient : public Worker {
bool result = Send(msg);
DCHECK(result);
DCHECK_EQ(response, expected_text_);
+ // expected_text_ is only used in the above DCHECK. This line suppresses the
+ // "unused private field" warning in release builds.
+ (void)expected_text_;
VLOG(1) << __FUNCTION__ << " Received reply: " << response;
ASSERT_EQ(channel()->peer_pid(), base::GetCurrentProcId());
@@ -1919,7 +1920,6 @@ class VerifiedClient : public Worker {
}
private:
- bool pump_during_send_;
std::string expected_text_;
};