summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoryutak@chromium.org <yutak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 18:46:05 +0000
committeryutak@chromium.org <yutak@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-20 18:46:05 +0000
commit3404f0885a2b893d049b4fc920925d8b9a2330cb (patch)
tree63af145e76a0a2e57034d3e1f063269c8d1ce890 /chrome
parent39644406156e68acc8e6bf1b9de94f0a6ec2d996 (diff)
downloadchromium_src-3404f0885a2b893d049b4fc920925d8b9a2330cb.zip
chromium_src-3404f0885a2b893d049b4fc920925d8b9a2330cb.tar.gz
chromium_src-3404f0885a2b893d049b4fc920925d8b9a2330cb.tar.bz2
Remove unnecessary function overload in FontDisplayView.
FontDisplayView::SetFontType is overloaded and has two function signatures, but one of them became obsolete (its implementation is not synchronized with the other) and is no longer used. TEST=none Review URL: http://codereview.chromium.org/113610 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/options/fonts_page_view.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/chrome/browser/views/options/fonts_page_view.cc b/chrome/browser/views/options/fonts_page_view.cc
index 3488d10..73159b1 100644
--- a/chrome/browser/views/options/fonts_page_view.cc
+++ b/chrome/browser/views/options/fonts_page_view.cc
@@ -107,8 +107,6 @@ class FontDisplayView : public views::View {
void SetFontType(const std::wstring& font_name,
int font_size);
- void SetFontType(gfx::Font font);
-
std::wstring font_name() { return font_name_; }
int font_size() { return font_size_; }
@@ -138,24 +136,6 @@ FontDisplayView::FontDisplayView()
FontDisplayView::~FontDisplayView() {
}
-void FontDisplayView::SetFontType(gfx::Font font) {
- if (font.FontName().empty())
- return;
-
- font_name_ = font.FontName();
- font_size_ = font.FontSize();
-
- // Append the font type and size here.
- std::wstring displayed_text = font_name_;
- displayed_text += L", ";
- displayed_text += UTF8ToWide(StringPrintf("%d", font_size_));
- displayed_text += L"pt";
-
- // Set Label.
- font_text_label_->SetText(displayed_text);
- font_text_label_->SetFont(font);
-}
-
void FontDisplayView::SetFontType(const std::wstring& font_name,
int font_size) {
if (font_name.empty())