Skip to content

Commit

Permalink
PangoFontInfo: Remove unused method is_bold
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jun 3, 2017
1 parent 0d411cb commit e420417
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions training/pango_font_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ PangoFontInfo::PangoFontInfo(const string& desc)

void PangoFontInfo::Clear() {
font_size_ = 0;
is_bold_ = false;
is_italic_ = false;
family_name_.clear();
font_type_ = UNKNOWN;
Expand Down Expand Up @@ -193,7 +192,6 @@ bool PangoFontInfo::ParseFontDescription(const PangoFontDescription *desc) {
is_italic_ = (PANGO_STYLE_ITALIC == style ||
PANGO_STYLE_OBLIQUE == style);

is_bold_ = (pango_font_description_get_weight(desc) >= PANGO_WEIGHT_BOLD);
return true;
}

Expand Down
2 changes: 0 additions & 2 deletions training/pango_font_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_bold() const { return is_bold_; }
bool is_italic() const { return is_italic_; }
FontTypeEnum font_type() const { return font_type_; }

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

0 comments on commit e420417

Please sign in to comment.