summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytearraylist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qbytearraylist.cpp')
-rw-r--r--src/corelib/text/qbytearraylist.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/corelib/text/qbytearraylist.cpp b/src/corelib/text/qbytearraylist.cpp
index d04555ed4d..621ee6be7c 100644
--- a/src/corelib/text/qbytearraylist.cpp
+++ b/src/corelib/text/qbytearraylist.cpp
@@ -150,22 +150,6 @@ QByteArray QtPrivate::QByteArrayList_join(const QByteArrayList *that, const char
return res;
}
-/*!
- \fn int QByteArrayList::indexOf(const char *needle, int from) const
-
- Returns the index position of the first occurrence of \a needle in
- the list, searching forward from index position \a from. Returns
- -1 if no item matched.
-
- \a needle must be NUL-terminated.
-
- This overload doesn't require creating a QByteArray, thus saving a
- memory allocation and some CPU time.
-
- \since 5.13
- \overload
-*/
-
int QtPrivate::QByteArrayList_indexOf(const QByteArrayList *that, const char *needle, int from)
{
const auto it = std::find_if(that->begin() + from, that->end(), [needle](const QByteArray &item) { return item == needle; });