From 725140988adc978b0afd7c7f823714ed9b095f7a Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 27 Jun 2020 15:25:00 +0000 Subject: [PATCH] remove unused weightFromInteger() function Signed-off-by: Ivailo Monev --- src/gui/text/qfontdatabase.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 2b284f1bd..ec6194424 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -107,21 +107,6 @@ static int getFontWeight(const QString &weightString) return (int) QFont::Normal; } -// convert 0 ~ 1000 integer to QFont::Weight -QFont::Weight weightFromInteger(int weight) -{ - if (weight < 400) - return QFont::Light; - else if (weight < 600) - return QFont::Normal; - else if (weight < 700) - return QFont::DemiBold; - else if (weight < 800) - return QFont::Bold; - else - return QFont::Black; -} - struct QtFontEncoding { signed int encoding : 16; -- 2.11.0