Skip to content

Commit 88a1364

Browse files
authored
Remove obsolete code
Pango versions older than 1.22.0 are not supported.
1 parent 808a10f commit 88a1364

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

training/pango_font_info.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -478,16 +478,6 @@ std::vector<std::string> FontUtils::available_fonts_; // cache list
478478
bool FontUtils::IsAvailableFont(const char* input_query_desc,
479479
std::string* best_match) {
480480
std::string query_desc(input_query_desc);
481-
#if (PANGO_VERSION <= 12005)
482-
// Strip commas and any ' Medium' substring in the name.
483-
query_desc.erase(std::remove(query_desc.begin(), query_desc.end(), ','),
484-
query_desc.end());
485-
const std::string kMediumStr = " Medium";
486-
std::size_t found = query_desc.find(kMediumStr);
487-
if (found != std::string::npos) {
488-
query_desc.erase(found, kMediumStr.length());
489-
}
490-
#endif
491481
PangoFontDescription *desc = pango_font_description_from_string(
492482
query_desc.c_str());
493483
PangoFont* selected_font = nullptr;

0 commit comments

Comments
 (0)