Skip to content

Commit 5a7b7ed

Browse files
committed
PangoFontInfo: Remove unused method is_italic
Signed-off-by: Stefan Weil <[email protected]>
1 parent 0cd71c6 commit 5a7b7ed

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

training/pango_font_info.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ PangoFontInfo::PangoFontInfo(const string& desc)
8888

8989
void PangoFontInfo::Clear() {
9090
font_size_ = 0;
91-
is_italic_ = false;
9291
family_name_.clear();
9392
font_type_ = UNKNOWN;
9493
if (desc_) {
@@ -188,10 +187,6 @@ bool PangoFontInfo::ParseFontDescription(const PangoFontDescription *desc) {
188187
font_size_ /= PANGO_SCALE;
189188
}
190189

191-
PangoStyle style = pango_font_description_get_style(desc);
192-
is_italic_ = (PANGO_STYLE_ITALIC == style ||
193-
PANGO_STYLE_OBLIQUE == style);
194-
195190
return true;
196191
}
197192

training/pango_font_info.h

-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ class PangoFontInfo {
105105
const string& family_name() const { return family_name_; }
106106
// Size in points (1/72"), rounded to the nearest integer.
107107
int font_size() const { return font_size_; }
108-
bool is_italic() const { return is_italic_; }
109108
FontTypeEnum font_type() const { return font_type_; }
110109

111110
int resolution() const { return resolution_; }
@@ -124,7 +123,6 @@ class PangoFontInfo {
124123
// Font properties set automatically from parsing the font description name.
125124
string family_name_;
126125
int font_size_;
127-
bool is_italic_;
128126
FontTypeEnum font_type_;
129127
// The Pango description that was used to initialize the instance.
130128
PangoFontDescription* desc_;

0 commit comments

Comments
 (0)