From 7b084779775da5d1f645341b865945fb2636c96c Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Wed, 5 Jun 2024 16:37:16 +0200 Subject: [PATCH] qstringalgorithms: remove unused function declaration The findStringInsensitive() function was declared but never implemented. Amends b347d487048cf36d609dd31952dbef1813b5b0e5. Found in API review. Change-Id: I178c7529f21adecaa568ba8da9195c1d5057c88b Reviewed-by: Marc Mutz (cherry picked from commit 6c4f7dffec7683fd8b9299a6328921d1f1beb584) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/text/qstringalgorithms.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/corelib/text/qstringalgorithms.h b/src/corelib/text/qstringalgorithms.h index 71a1dbd5268..755e3f82bd9 100644 --- a/src/corelib/text/qstringalgorithms.h +++ b/src/corelib/text/qstringalgorithms.h @@ -56,7 +56,6 @@ namespace QtPrivate { [[nodiscard]] Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool endsWith(QLatin1StringView haystack, QStringView needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; [[nodiscard]] Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool endsWith(QLatin1StringView haystack, QLatin1StringView needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; -[[nodiscard]] Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype findStringInsensitive(QStringView haystack, qsizetype from, char16_t needle) noexcept; [[nodiscard]] inline qsizetype findString(QStringView str, qsizetype from, QChar needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; [[nodiscard]] Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype findString(QStringView haystack, qsizetype from, QStringView needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; [[nodiscard]] Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype findString(QStringView haystack, qsizetype from, QLatin1StringView needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept;