diff options
Diffstat (limited to 'src/corelib/text/qbytearraylist.cpp')
-rw-r--r-- | src/corelib/text/qbytearraylist.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/corelib/text/qbytearraylist.cpp b/src/corelib/text/qbytearraylist.cpp index 621ee6be7c..c815e766ab 100644 --- a/src/corelib/text/qbytearraylist.cpp +++ b/src/corelib/text/qbytearraylist.cpp @@ -150,10 +150,4 @@ QByteArray QtPrivate::QByteArrayList_join(const QByteArrayList *that, const char return res; } -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; }); - return it == that->end() ? -1 : int(std::distance(that->begin(), it)); -} - QT_END_NAMESPACE |