From: Scott Kostyshak Date: Fri, 20 Mar 2020 13:12:47 +0000 (-0400) Subject: Remove redundant font loader code X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1089 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f8e40f8a;p=features.git Remove redundant font loader code Setting the family to "family" is already attempted above. A different case was adapted to be this duplicate case at d4ff3a29, but it should have just been removed. Spotted by Enrico. --- diff --git a/src/frontends/qt/GuiFontLoader.cpp b/src/frontends/qt/GuiFontLoader.cpp index 69dba8d45d..cf73292f2a 100644 --- a/src/frontends/qt/GuiFontLoader.cpp +++ b/src/frontends/qt/GuiFontLoader.cpp @@ -203,15 +203,6 @@ QFont symbolFont(QString const & family, bool * ok) return font; } - LYXERR(Debug::FONT, "Trying " << family << " ... "); - font.setFamily(family); - - if (isChosenFont(font, family, QString())) { - LYXERR(Debug::FONT, "raw version!"); - *ok = true; - return font; - } - LYXERR(Debug::FONT, " FAILED :-("); *ok = false; return font;