summaryrefslogtreecommitdiffstats
path: root/base/id_map_unittest.cc
diff options
context:
space:
mode:
authorpph34r@gmail.com <pph34r@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-25 04:33:18 +0000
committerpph34r@gmail.com <pph34r@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-25 04:33:18 +0000
commit9f7785d879330392b52bd62efdd73d58aff4c205 (patch)
tree4e969ccbea500f6e69c2e4c92bfd4eaa4042ba19 /base/id_map_unittest.cc
parent18c170d8b8d5dd148cb1e4f19ef65f0d9d6f5875 (diff)
downloadchromium_src-9f7785d879330392b52bd62efdd73d58aff4c205.zip
chromium_src-9f7785d879330392b52bd62efdd73d58aff4c205.tar.gz
chromium_src-9f7785d879330392b52bd62efdd73d58aff4c205.tar.bz2
Clean up of -Wunused-but-set-variable (gcc 4.6)
BUG=80071 TEST=base_unittests Review URL: http://codereview.chromium.org/7232025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/id_map_unittest.cc')
-rw-r--r--base/id_map_unittest.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/id_map_unittest.cc b/base/id_map_unittest.cc
index 54475b6..feb150b 100644
--- a/base/id_map_unittest.cc
+++ b/base/id_map_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -165,11 +165,9 @@ TEST_F(IDMapTest, OwningPointersDeletesThemOnDestruct) {
int external_del_count = 0;
DestructorCounter* external_obj[kCount];
- int map_external_ids[kCount];
int owned_del_count = 0;
DestructorCounter* owned_obj[kCount];
- int map_owned_ids[kCount];
{
IDMap<DestructorCounter> map_external;
@@ -177,10 +175,10 @@ TEST_F(IDMapTest, OwningPointersDeletesThemOnDestruct) {
for (int i = 0; i < kCount; ++i) {
external_obj[i] = new DestructorCounter(&external_del_count);
- map_external_ids[i] = map_external.Add(external_obj[i]);
+ map_external.Add(external_obj[i]);
owned_obj[i] = new DestructorCounter(&owned_del_count);
- map_owned_ids[i] = map_owned.Add(owned_obj[i]);
+ map_owned.Add(owned_obj[i]);
}
}