OSDN Git Service

remove obsolete and unused QUrl methods
authorIvailo Monev <xakepa10@gmail.com>
Thu, 22 Jun 2023 10:44:14 +0000 (13:44 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 22 Jun 2023 10:44:14 +0000 (13:44 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qurl.cpp
src/core/io/qurl.h

index a06979a..f4d6cd7 100644 (file)
@@ -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
index b1f2063..f88bdef 100644 (file)
@@ -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 &);