[QFontDatabase] Get rid of some dead code
1. Checking if `db->count == 0` inside the `for (int x = 0; x < db->count; ++x)` loop makes absolutely no sense; 2. The family gets loaded just a line above (ensurePopulated()). Change-Id: I72dbd42565c4f5a5d9ff8879f10ee0ece7298fa7 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>bb10
parent
af217e67fa
commit
9bf6ea7fde
|
|
@ -1181,9 +1181,6 @@ static int match(int script, const QFontDef &request,
|
|||
|
||||
test.family->ensurePopulated();
|
||||
|
||||
if (family_name.isEmpty())
|
||||
load(test.family->name, script);
|
||||
|
||||
// Check if family is supported in the script we want
|
||||
if (writingSystem != QFontDatabase::Any && !(test.family->writingSystems[writingSystem] & QtFontFamily::Supported))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue