Skip to content

Commit e420417

Browse files
committed
PangoFontInfo: Remove unused method is_bold
Signed-off-by: Stefan Weil <[email protected]>
1 parent 0d411cb commit e420417

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

training/pango_font_info.cpp

-2
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_bold_ = false;
9291
is_italic_ = false;
9392
family_name_.clear();
9493
font_type_ = UNKNOWN;
@@ -193,7 +192,6 @@ bool PangoFontInfo::ParseFontDescription(const PangoFontDescription *desc) {
193192
is_italic_ = (PANGO_STYLE_ITALIC == style ||
194193
PANGO_STYLE_OBLIQUE == style);
195194

196-
is_bold_ = (pango_font_description_get_weight(desc) >= PANGO_WEIGHT_BOLD);
197195
return true;
198196
}
199197

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_bold() const { return is_bold_; }
109108
bool is_italic() const { return is_italic_; }
110109
FontTypeEnum font_type() const { return font_type_; }
111110

@@ -125,7 +124,6 @@ class PangoFontInfo {
125124
// Font properties set automatically from parsing the font description name.
126125
string family_name_;
127126
int font_size_;
128-
bool is_bold_;
129127
bool is_italic_;
130128
FontTypeEnum font_type_;
131129
// The Pango description that was used to initialize the instance.

0 commit comments

Comments
 (0)