Remove some unused code

Change-Id: I184c0e00562b9cc61e628457629633f8157333ad
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Lars Knoll 2020-07-13 19:36:45 +02:00
parent 2b83244402
commit b69a1d8eed
1 changed files with 0 additions and 12 deletions

View File

@ -245,13 +245,6 @@ static qreal qConvertToRealNumber(const QVariant::Private *d, bool *ok)
}
}
template<typename TInput, typename LiteralWrapper>
inline bool qt_convertToBool(const QVariant::Private *const d)
{
TInput str = d->get<TInput>().toLower();
return !(str.isEmpty() || str == LiteralWrapper("0") || str == LiteralWrapper("false"));
}
/*!
\internal
@ -262,11 +255,6 @@ static bool convert(const QVariant::Private *d, int t, void *result)
Q_ASSERT(d->typeId() != t);
Q_ASSERT(result);
if (d->typeId() >= QMetaType::LastCoreType || t >= QMetaType::LastCoreType) {
if (QMetaType::convert(d->storage(), d->typeId(), result, t))
return true;
}
bool ok = true;
switch (uint(t)) {