QLocaleData: remove unused internal function

Pick-to: 5.15
Change-Id: Iea47e0f8fc8b40378df7fffd1624bf3469e66c90
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Thiago Macieira 2020-07-24 10:06:39 -07:00
parent efd3c7bf24
commit f50945b8fd
2 changed files with 0 additions and 13 deletions

View File

@ -3896,18 +3896,6 @@ qulonglong QLocaleData::stringToUnsLongLong(QStringView str, int base, bool *ok,
return bytearrayToUnsLongLong(buff.constData(), base, ok);
}
double QLocaleData::bytearrayToDouble(const char *num, bool *ok)
{
bool nonNullOk = false;
int len = static_cast<int>(strlen(num));
Q_ASSERT(len >= 0);
int processed = 0;
double d = qt_asciiToDouble(num, len, nonNullOk, processed);
if (ok != nullptr)
*ok = nonNullOk;
return d;
}
qlonglong QLocaleData::bytearrayToLongLong(const char *num, int base, bool *ok)
{
bool _ok;

View File

@ -265,7 +265,6 @@ public:
qint64 stringToLongLong(QStringView str, int base, bool *ok, QLocale::NumberOptions options) const;
quint64 stringToUnsLongLong(QStringView str, int base, bool *ok, QLocale::NumberOptions options) const;
static double bytearrayToDouble(const char *num, bool *ok);
// this function is used in QIntValidator (QtGui)
Q_CORE_EXPORT static qint64 bytearrayToLongLong(const char *num, int base, bool *ok);
static quint64 bytearrayToUnsLongLong(const char *num, int base, bool *ok);