mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: remove unused and redundant KIO::Slave::slaveProtocol() method
returns the same as KIO::Slave::protocol() Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
65957abb2e
commit
9e177e6fa9
2 changed files with 1 additions and 23 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue