OSDN Git Service

remove unused static capitalize() function
authorIvailo Monev <xakepa10@laimg.moc>
Sat, 27 Jun 2020 14:59:35 +0000 (14:59 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sat, 27 Jun 2020 14:59:35 +0000 (14:59 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/text/qfontdatabase_x11_p.h

index c59b54a..c701926 100644 (file)
@@ -64,17 +64,6 @@ QT_BEGIN_NAMESPACE
 extern double qt_pointSize(double pixelSize, int dpi);
 extern double qt_pixelSize(double pointSize, int dpi);
 
-static inline void capitalize (char *s)
-{
-    bool space = true;
-    while(*s) {
-        if (space)
-            *s = toupper(*s);
-        space = (*s == ' ');
-        ++s;
-    }
-}
-
 // generated via util/unicode/makeencodings
 static const struct XlfdTblData {
     const char *name;
@@ -616,7 +605,6 @@ static void loadFontConfig()
     for (int i = 0; i < fonts->nfont; i++) {
         if (FcPatternGetString(fonts->fonts[i], FC_FAMILY, 0, &value) != FcResultMatch)
             continue;
-        //         capitalize(value);
         familyName = QString::fromUtf8((const char *)value);
         slant_value = FC_SLANT_ROMAN;
         weight_value = FC_WEIGHT_MEDIUM;