summaryrefslogtreecommitdiffstats
path: root/ui/gfx/canvas.cc
diff options
context:
space:
mode:
authoryukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 18:37:49 +0000
committeryukishiino@chromium.org <yukishiino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 18:37:49 +0000
commitd35258d12468506878e008b7d3f7f659aaf7c47e (patch)
treede39f7abece5fdc6876123912c08623fdaa73c5e /ui/gfx/canvas.cc
parentdf0de81bc3e8d6cbdd31fd5de06b08c4f354ed82 (diff)
downloadchromium_src-d35258d12468506878e008b7d3f7f659aaf7c47e.zip
chromium_src-d35258d12468506878e008b7d3f7f659aaf7c47e.tar.gz
chromium_src-d35258d12468506878e008b7d3f7f659aaf7c47e.tar.bz2
Clean-up: Removes the obsolete Canvas::GetStringWidth(Font version).
BUG=265485 TEST=Run ui_unittests. Review URL: https://codereview.chromium.org/141133007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252328 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/canvas.cc')
-rw-r--r--ui/gfx/canvas.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index b78effa..64522bc 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -114,13 +114,6 @@ float Canvas::GetStringWidthF(const base::string16& text,
}
// static
-int Canvas::GetStringWidth(const base::string16& text, const Font& font) {
- int width = 0, height = 0;
- SizeStringInt(text, FontList(font), &width, &height, 0, NO_ELLIPSIS);
- return width;
-}
-
-// static
int Canvas::DefaultCanvasTextAlignment() {
return base::i18n::IsRTL() ? TEXT_ALIGN_RIGHT : TEXT_ALIGN_LEFT;
}