mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kio: remove now unused KIO::SlaveInterface methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1c22bf126b
commit
374d63e359
2 changed files with 6 additions and 33 deletions
|
@ -23,20 +23,16 @@
|
|||
#include "slavebase.h"
|
||||
#include "connection_p.h"
|
||||
#include "job_p.h"
|
||||
#include "klocale.h"
|
||||
#include "kprotocolinfo.h"
|
||||
#include "kstandarddirs.h"
|
||||
#include "kdebug.h"
|
||||
|
||||
#include <kdebug.h>
|
||||
#include <klocale.h>
|
||||
#include <kprotocolinfo.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <QProcess>
|
||||
#include <QDir>
|
||||
|
||||
#include <QtCore/QProcess>
|
||||
#include <QtCore/QDir>
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
|
||||
using namespace KIO;
|
||||
|
||||
|
@ -88,11 +84,6 @@ void SlaveInterface::setHost(const QString &host)
|
|||
m_host = host;
|
||||
}
|
||||
|
||||
void SlaveInterface::setIdle()
|
||||
{
|
||||
m_idlesince.start();
|
||||
}
|
||||
|
||||
void SlaveInterface::ref()
|
||||
{
|
||||
m_refcount++;
|
||||
|
@ -108,11 +99,6 @@ void SlaveInterface::deref()
|
|||
}
|
||||
}
|
||||
|
||||
qint64 SlaveInterface::idleTime() const
|
||||
{
|
||||
return m_idlesince.elapsed();
|
||||
}
|
||||
|
||||
void SlaveInterface::setPID(const pid_t pid)
|
||||
{
|
||||
m_pid = pid;
|
||||
|
|
|
@ -25,11 +25,9 @@
|
|||
#include "kio/connection_p.h"
|
||||
|
||||
#include <QTimer>
|
||||
#include <QElapsedTimer>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
class KUrl;
|
||||
|
||||
|
@ -154,16 +152,6 @@ public:
|
|||
void send(int cmd, const QByteArray &arr);
|
||||
// == end communication with connected kioslave ==
|
||||
|
||||
/**
|
||||
* @return The time this slave has been idle.
|
||||
*/
|
||||
qint64 idleTime() const;
|
||||
|
||||
/**
|
||||
* Marks this slave as idle.
|
||||
*/
|
||||
void setIdle();
|
||||
|
||||
void ref();
|
||||
void deref();
|
||||
|
||||
|
@ -242,7 +230,6 @@ private:
|
|||
KIO::ConnectionServer* m_slaveconnserver;
|
||||
pid_t m_pid;
|
||||
bool m_dead;
|
||||
QElapsedTimer m_idlesince;
|
||||
int m_refcount;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue