diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 50bb0472533..04bb83f3b56 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -9070,26 +9070,6 @@ QString QtPrivate::argToQString(QLatin1StringView pattern, size_t n, const ArgBa return argToQStringImpl(pattern, n, args); } -/*! \fn bool QString::isSimpleText() const - - \internal -*/ -bool QString::isSimpleText() const -{ - const char16_t *p = d.data(); - const char16_t * const end = p + d.size; - while (p < end) { - char16_t uc = *p; - // sort out regions of complex text formatting - if (uc > 0x058f && (uc < 0x1100 || uc > 0xfb0f)) { - return false; - } - p++; - } - - return true; -} - /*! \fn bool QString::isRightToLeft() const Returns \c true if the string is read right to left. diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index 6ec7baf4042..a0ec0c2afd9 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -964,8 +964,6 @@ public: inline bool isNull() const { return d->isNull(); } - - bool isSimpleText() const; bool isRightToLeft() const; [[nodiscard]] bool isValidUtf16() const noexcept { return QStringView(*this).isValidUtf16(); }