From 9ff44989ec4c5e3374569d4ad3eb6ca6d9463b1d Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 7 Mar 2022 16:25:18 +0100 Subject: [PATCH] Remove two unused functions from qbytearray.cpp The q_toPercentEncoding() overload without percent parameter and the q_normalizePercentEncoding() function are nowhere used. Although they were extern symbols, they were not declared in a header. Thei names mark them as Qt-internal. So removal should be safe. Change-Id: If6cece20796a80d98a9af4e764443f3ab8c555c9 Reviewed-by: Thiago Macieira --- src/corelib/text/qbytearray.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 30d5b65fce..62c52bbca1 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -4618,17 +4618,6 @@ static void q_toPercentEncoding(QByteArray *ba, const char *dontEncode, const ch ba->truncate(length); } -void q_toPercentEncoding(QByteArray *ba, const char *exclude, const char *include) -{ - q_toPercentEncoding(ba, exclude, include, '%'); -} - -void q_normalizePercentEncoding(QByteArray *ba, const char *exclude) -{ - q_fromPercentEncoding(ba, '%'); - q_toPercentEncoding(ba, exclude, nullptr, '%'); -} - /*! \since 4.4