From 5a7b7ed7e12aefe61a9065ee3f7891ccb3bd0867 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 3 Jun 2017 10:55:03 +0200 Subject: [PATCH] PangoFontInfo: Remove unused method is_italic Signed-off-by: Stefan Weil --- training/pango_font_info.cpp | 5 ----- training/pango_font_info.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/training/pango_font_info.cpp b/training/pango_font_info.cpp index 6af1f758c..b0474575a 100644 --- a/training/pango_font_info.cpp +++ b/training/pango_font_info.cpp @@ -88,7 +88,6 @@ PangoFontInfo::PangoFontInfo(const string& desc) void PangoFontInfo::Clear() { font_size_ = 0; - is_italic_ = false; family_name_.clear(); font_type_ = UNKNOWN; if (desc_) { @@ -188,10 +187,6 @@ bool PangoFontInfo::ParseFontDescription(const PangoFontDescription *desc) { font_size_ /= PANGO_SCALE; } - PangoStyle style = pango_font_description_get_style(desc); - is_italic_ = (PANGO_STYLE_ITALIC == style || - PANGO_STYLE_OBLIQUE == style); - return true; } diff --git a/training/pango_font_info.h b/training/pango_font_info.h index 32e561048..f435d04af 100644 --- a/training/pango_font_info.h +++ b/training/pango_font_info.h @@ -105,7 +105,6 @@ class PangoFontInfo { const string& family_name() const { return family_name_; } // Size in points (1/72"), rounded to the nearest integer. int font_size() const { return font_size_; } - bool is_italic() const { return is_italic_; } FontTypeEnum font_type() const { return font_type_; } int resolution() const { return resolution_; } @@ -124,7 +123,6 @@ class PangoFontInfo { // Font properties set automatically from parsing the font description name. string family_name_; int font_size_; - bool is_italic_; FontTypeEnum font_type_; // The Pango description that was used to initialize the instance. PangoFontDescription* desc_;