qnetworkcookie: remove parseCookies

that takes QBA in favor of QBAV version

Change-Id: I56bbe5cc5c7fa3e31e6b6e71d97211de3eb1ab26
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-11-01 16:05:54 +03:00
parent 7b96f3934c
commit 3c80e88924
3 changed files with 10 additions and 9 deletions

View File

@ -932,15 +932,7 @@ static QDateTime parseDateString(QByteArrayView dateString)
cookie that is parsed.
\sa toRawForm()
*/
QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieString)
{
return parseCookies(QByteArrayView(cookieString));
}
/*!
\overload
\since 6.7
\note In Qt versions prior to 6.7, this function took QByteArray only.
*/
QList<QNetworkCookie> QNetworkCookie::parseCookies(QByteArrayView cookieString)
{

View File

@ -75,7 +75,9 @@ public:
bool hasSameIdentifier(const QNetworkCookie &other) const;
void normalize(const QUrl &url);
#if QT_NETWORK_REMOVED_SINCE(6, 7)
static QList<QNetworkCookie> parseCookies(const QByteArray &cookieString);
#endif
static QList<QNetworkCookie> parseCookies(QByteArrayView cookieString);
private:

View File

@ -33,6 +33,13 @@ bool QNetworkRequest::hasRawHeader(const QByteArray &headerName) const
return hasRawHeader(qToByteArrayViewIgnoringNull(headerName));
}
#include "qnetworkcookie.h"
QList<QNetworkCookie> QNetworkCookie::parseCookies(const QByteArray &cookieString)
{
return parseCookies(qToByteArrayViewIgnoringNull(cookieString));
}
// #include "qotherheader.h"
// // implement removed functions from qotherheader.h
// order sections alphabetically