Skip to content

Commit fbfbf67

Browse files
committed
PangoFontInfo: Remove unused method is_smallcaps
Signed-off-by: Stefan Weil <[email protected]>
1 parent 500f913 commit fbfbf67

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

training/pango_font_info.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ void PangoFontInfo::Clear() {
9090
font_size_ = 0;
9191
is_bold_ = false;
9292
is_italic_ = false;
93-
is_smallcaps_ = false;
9493
family_name_.clear();
9594
font_type_ = UNKNOWN;
9695
if (desc_) {
@@ -193,8 +192,6 @@ bool PangoFontInfo::ParseFontDescription(const PangoFontDescription *desc) {
193192
PangoStyle style = pango_font_description_get_style(desc);
194193
is_italic_ = (PANGO_STYLE_ITALIC == style ||
195194
PANGO_STYLE_OBLIQUE == style);
196-
is_smallcaps_ = (pango_font_description_get_variant(desc)
197-
== PANGO_VARIANT_SMALL_CAPS);
198195

199196
is_bold_ = (pango_font_description_get_weight(desc) >= PANGO_WEIGHT_BOLD);
200197
return true;

training/pango_font_info.h

-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class PangoFontInfo {
107107
int font_size() const { return font_size_; }
108108
bool is_bold() const { return is_bold_; }
109109
bool is_italic() const { return is_italic_; }
110-
bool is_smallcaps() const { return is_smallcaps_; }
111110
FontTypeEnum font_type() const { return font_type_; }
112111

113112
int resolution() const { return resolution_; }
@@ -128,7 +127,6 @@ class PangoFontInfo {
128127
int font_size_;
129128
bool is_bold_;
130129
bool is_italic_;
131-
bool is_smallcaps_;
132130
FontTypeEnum font_type_;
133131
// The Pango description that was used to initialize the instance.
134132
PangoFontDescription* desc_;

0 commit comments

Comments
 (0)