From: Ivailo Monev Date: Thu, 22 Jun 2023 10:44:14 +0000 (+0300) Subject: remove obsolete and unused QUrl methods X-Git-Tag: 4.13.0~57 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2f795c768a5d5452a3a9e40c11b8e891eb83e084;p=kde%2FKatie.git remove obsolete and unused QUrl methods Signed-off-by: Ivailo Monev --- 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 &);