Removed unused QUrlPrivate::clear()

The function is not used anymore.

Change-Id: Idfdc0505358421a866b15e2ad322679a1808e223
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Simon Hausmann 2012-04-23 08:46:05 +02:00 committed by Qt by Nokia
parent e9e817accb
commit 18f4da0d90
2 changed files with 0 additions and 19 deletions

View File

@ -246,24 +246,6 @@ QUrlPrivate::QUrlPrivate(const QUrlPrivate &copy)
{
}
void QUrlPrivate::clear()
{
scheme.clear();
userName.clear();
password.clear();
host.clear();
port = -1;
path.clear();
query.clear();
fragment.clear();
errorCode = NoError;
errorSupplement = 0;
sectionIsPresent = 0;
sectionHasError = 0;
}
// From RFC 3896, Appendix A Collected ABNF for URI
// URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
//[...]

View File

@ -108,7 +108,6 @@ public:
QUrlPrivate(const QUrlPrivate &copy);
void parse(const QString &url, QUrl::ParsingMode parsingMode);
void clear();
bool isEmpty() const
{ return sectionIsPresent == 0 && port == -1 && path.isEmpty(); }