mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: remove unused KIO::SlaveInterface methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
004e03252f
commit
cb8f778490
3 changed files with 3 additions and 23 deletions
|
@ -67,7 +67,6 @@ SlaveInterfacePrivate::SlaveInterfacePrivate(const QString &protocol)
|
|||
m_job(nullptr),
|
||||
m_pid(0),
|
||||
m_port(0),
|
||||
contacted(false),
|
||||
dead(false),
|
||||
contact_started(time(0)),
|
||||
m_idleSince(0),
|
||||
|
@ -90,7 +89,8 @@ SlaveInterfacePrivate::~SlaveInterfacePrivate()
|
|||
|
||||
|
||||
SlaveInterface::SlaveInterface(const QString &protocol, QObject *parent)
|
||||
: QObject(parent), d_ptr(new SlaveInterfacePrivate(protocol))
|
||||
: QObject(parent),
|
||||
d_ptr(new SlaveInterfacePrivate(protocol))
|
||||
{
|
||||
connect(&d_ptr->speed_timer, SIGNAL(timeout()), SLOT(calcSpeed()));
|
||||
d_ptr->slaveconnserver->setParent(this);
|
||||
|
@ -101,7 +101,6 @@ SlaveInterface::SlaveInterface(const QString &protocol, QObject *parent)
|
|||
SlaveInterface::~SlaveInterface()
|
||||
{
|
||||
// Note: no kDebug() here (scheduler is deleted very late)
|
||||
|
||||
delete d_ptr;
|
||||
}
|
||||
|
||||
|
@ -147,18 +146,6 @@ void SlaveInterface::setIdle()
|
|||
d->m_idleSince = time(0);
|
||||
}
|
||||
|
||||
bool SlaveInterface::isConnected() const
|
||||
{
|
||||
Q_D(const SlaveInterface);
|
||||
return d->contacted;
|
||||
}
|
||||
|
||||
void SlaveInterface::setConnected(bool c)
|
||||
{
|
||||
Q_D(SlaveInterface);
|
||||
d->contacted = c;
|
||||
}
|
||||
|
||||
void SlaveInterface::ref()
|
||||
{
|
||||
Q_D(SlaveInterface);
|
||||
|
@ -285,7 +272,7 @@ SlaveInterface* SlaveInterface::createSlave( const QString &protocol, const KUrl
|
|||
{
|
||||
kDebug(7002) << "createSlave" << protocol << "for" << url;
|
||||
SlaveInterface *slave = new SlaveInterface(protocol);
|
||||
QString slaveAddress = slave->d_func()->slaveconnserver->address();
|
||||
const QString slaveAddress = slave->d_func()->slaveconnserver->address();
|
||||
|
||||
const QString slavename = KProtocolInfo::exec(protocol);
|
||||
if (slavename.isEmpty()) {
|
||||
|
|
|
@ -204,12 +204,6 @@ public:
|
|||
*/
|
||||
void setIdle();
|
||||
|
||||
/**
|
||||
* @return Whether the slave is connected (Connection oriented slaves only)
|
||||
*/
|
||||
bool isConnected() const;
|
||||
void setConnected(bool c);
|
||||
|
||||
void ref();
|
||||
void deref();
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ public:
|
|||
KIO::SimpleJob *m_job;
|
||||
pid_t m_pid;
|
||||
quint16 m_port;
|
||||
bool contacted;
|
||||
bool dead;
|
||||
time_t contact_started;
|
||||
time_t m_idleSince;
|
||||
|
|
Loading…
Add table
Reference in a new issue