summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 03:25:02 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 03:25:02 +0000
commit58515a59682645f02e2086409aeeba6bbafeb582 (patch)
treecddad1e77dd242da475aff2109fea5e42130f26d /ui
parent03d7535295b2b8481a428e460309551fc1be680c (diff)
downloadchromium_src-58515a59682645f02e2086409aeeba6bbafeb582.zip
chromium_src-58515a59682645f02e2086409aeeba6bbafeb582.tar.gz
chromium_src-58515a59682645f02e2086409aeeba6bbafeb582.tar.bz2
Get rid of unused variable reported by clang.
BUG=None TEST=Build Review URL: http://codereview.chromium.org/8372068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/base/text/text_elider.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/base/text/text_elider.cc b/ui/base/text/text_elider.cc
index b91a33a..8461304 100644
--- a/ui/base/text/text_elider.cc
+++ b/ui/base/text/text_elider.cc
@@ -261,11 +261,9 @@ string16 ElideUrl(const GURL& url,
// the pixel width of kEllipsis. Otherwise, subdomain remains,
// which means that this case has been resolved earlier.
string16 url_elided_domain = url_subdomain + url_domain;
- int pixel_width_url_elided_domain = pixel_width_url_domain;
if (pixel_width_url_subdomain > kPixelWidthDotsTrailer) {
if (!url_subdomain.empty()) {
url_elided_domain = kEllipsisAndSlash[0] + url_domain;
- pixel_width_url_elided_domain += kPixelWidthDotsTrailer;
} else {
url_elided_domain = url_domain;
}