From 2f795c768a5d5452a3a9e40c11b8e891eb83e084 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 22 Jun 2023 13:44:14 +0300 Subject: [PATCH] remove obsolete and unused QUrl methods Signed-off-by: Ivailo Monev --- src/core/io/qurl.cpp | 27 --------------------------- src/core/io/qurl.h | 2 -- 2 files changed, 29 deletions(-) diff --git a/src/core/io/qurl.cpp b/src/core/io/qurl.cpp index a06979a97..f4d6cd7ba 100644 --- a/src/core/io/qurl.cpp +++ b/src/core/io/qurl.cpp @@ -3433,33 +3433,6 @@ QByteArray QUrl::toPercentEncoding(const QString &input, const QByteArray &exclu } /*! - \obsolete - Returns a \a uc in Punycode encoding. - - Punycode is a Unicode encoding used for internationalized domain - names, as defined in RFC3492. If you want to convert a domain name from - Unicode to its ASCII-compatible representation, use toAce(). -*/ -QByteArray QUrl::toPunycode(const QString &uc) -{ - return QUrl::toAce(uc); -} - -/*! - \obsolete - Returns the Punycode decoded representation of \a pc. - - Punycode is a Unicode encoding used for internationalized domain - names, as defined in RFC3492. If you want to convert a domain from - its ASCII-compatible encoding to the Unicode representation, use - fromAce(). -*/ -QString QUrl::fromPunycode(const QByteArray &pc) -{ - return QUrl::fromAce(pc); -} - -/*! \since 4.2 Returns the Unicode form of the given domain name diff --git a/src/core/io/qurl.h b/src/core/io/qurl.h index b1f206327..f88bdef78 100644 --- a/src/core/io/qurl.h +++ b/src/core/io/qurl.h @@ -171,8 +171,6 @@ public: static QByteArray toPercentEncoding(const QString &, const QByteArray &exclude = QByteArray(), const QByteArray &include = QByteArray()); - static QString fromPunycode(const QByteArray &); - static QByteArray toPunycode(const QString &); static QString fromAce(const QByteArray &); static QByteArray toAce(const QString &); -- 2.11.0