From 9e177e6fa966af820fd0b706691c50b368bc2dba Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sat, 3 Jun 2023 12:15:15 +0300 Subject: [PATCH] kio: remove unused and redundant KIO::Slave::slaveProtocol() method returns the same as KIO::Slave::protocol() Signed-off-by: Ivailo Monev --- kio/kio/slave.cpp | 10 +--------- kio/kio/slave.h | 14 -------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/kio/kio/slave.cpp b/kio/kio/slave.cpp index 5b50b2b3..35230036 100644 --- a/kio/kio/slave.cpp +++ b/kio/kio/slave.cpp @@ -70,8 +70,7 @@ namespace KIO { public: SlavePrivate(const QString &protocol) : m_protocol(protocol), - m_slaveProtocol(protocol), - slaveconnserver(new KIO::ConnectionServer), + slaveconnserver(new KIO::ConnectionServer()), m_job(0), m_pid(0), m_port(0), @@ -91,7 +90,6 @@ namespace KIO { } QString m_protocol; - QString m_slaveProtocol; QString m_host; QString m_user; QString m_passwd; @@ -181,12 +179,6 @@ void Slave::setProtocol(const QString & protocol) d->m_protocol = protocol; } -QString Slave::slaveProtocol() const -{ - Q_D(const Slave); - return d->m_slaveProtocol; -} - QString Slave::host() const { Q_D(const Slave); diff --git a/kio/kio/slave.h b/kio/kio/slave.h index 21c9e356..691999ac 100644 --- a/kio/kio/slave.h +++ b/kio/kio/slave.h @@ -97,20 +97,6 @@ public: void setProtocol(const QString &protocol); - /** - * The actual protocol used to handle the request. - * - * This method will return a different protocol than - * the one obtained by using protocol() if a - * proxy-server is used for the given protocol. This - * usually means that this method will return "http" - * when the actuall request was to retrieve a resource - * from an "ftp" server by going through a proxy server. - * - * @return the actual protocol (io-slave) that handled the request - */ - QString slaveProtocol() const; - /** * @return Host this slave is (was?) connected to */