summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-07-24 10:06:39 -0700
committerThiago Macieira <thiago.macieira@intel.com>2020-07-28 08:54:03 -0700
commitf50945b8fd6f51bf679ef35153915da882f332de (patch)
tree258d341255b3cd23873185eb29052cb3dfb8c060 /src
parentefd3c7bf2427c8237857e56ecd51b8da3ce43a6e (diff)
QLocaleData: remove unused internal function
Pick-to: 5.15 Change-Id: Iea47e0f8fc8b40378df7fffd1624bf3469e66c90 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/text/qlocale.cpp12
-rw-r--r--src/corelib/text/qlocale_p.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 430991b83b..159cbc0944 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -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;
diff --git a/src/corelib/text/qlocale_p.h b/src/corelib/text/qlocale_p.h
index d822f86b72..fa61438041 100644
--- a/src/corelib/text/qlocale_p.h
+++ b/src/corelib/text/qlocale_p.h
@@ -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);