kio: remove unused SlaveBasePrivate member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-26 17:49:45 +03:00
parent 5c95c2118d
commit 6140752f69
2 changed files with 7 additions and 15 deletions

View file

@ -129,7 +129,6 @@ public:
struct timeval last_tv; struct timeval last_tv;
KIO::filesize_t totalSize; KIO::filesize_t totalSize;
KIO::filesize_t sentListEntries;
KRemoteEncoding *remotefile; KRemoteEncoding *remotefile;
time_t timeout; time_t timeout;
enum { Idle, InsideMethod, FinishedCalled, ErrorCalled } m_state; enum { Idle, InsideMethod, FinishedCalled, ErrorCalled } m_state;
@ -262,9 +261,7 @@ SlaveBase::SlaveBase( const QByteArray &protocol,
d->wasKilled=false; d->wasKilled=false;
d->last_tv.tv_sec = 0; d->last_tv.tv_sec = 0;
d->last_tv.tv_usec = 0; d->last_tv.tv_usec = 0;
// d->processed_size = 0;
d->totalSize=0; d->totalSize=0;
d->sentListEntries=0;
d->timeout = 0; d->timeout = 0;
connectSlave(QFile::decodeName(app_socket)); connectSlave(QFile::decodeName(app_socket));
@ -457,7 +454,6 @@ void SlaveBase::error( int _errid, const QString &_text )
send( MSG_ERROR, data ); send( MSG_ERROR, data );
//reset //reset
d->sentListEntries=0;
d->totalSize=0; d->totalSize=0;
d->inOpenLoop=false; d->inOpenLoop=false;
} }
@ -484,7 +480,6 @@ void SlaveBase::finished()
send( MSG_FINISHED ); send( MSG_FINISHED );
// reset // reset
d->sentListEntries=0;
d->totalSize=0; d->totalSize=0;
d->inOpenLoop=false; d->inOpenLoop=false;
} }
@ -516,7 +511,6 @@ void SlaveBase::totalSize( KIO::filesize_t _bytes )
//this one is usually called before the first item is listed in listDir() //this one is usually called before the first item is listed in listDir()
d->totalSize=_bytes; d->totalSize=_bytes;
d->sentListEntries=0;
} }
void SlaveBase::processedSize( KIO::filesize_t _bytes ) void SlaveBase::processedSize( KIO::filesize_t _bytes )
@ -550,7 +544,6 @@ void SlaveBase::processedSize( KIO::filesize_t _bytes )
d->last_tv.tv_usec = tv.tv_usec; d->last_tv.tv_usec = tv.tv_usec;
} }
} }
// d->processed_size = _bytes;
} }
void SlaveBase::written( KIO::filesize_t _bytes ) void SlaveBase::written( KIO::filesize_t _bytes )
@ -691,7 +684,6 @@ void SlaveBase::listEntries( const UDSEntryList& list )
for (; it != end; ++it) for (; it != end; ++it)
stream << *it; stream << *it;
send( MSG_LIST_ENTRIES, data); send( MSG_LIST_ENTRIES, data);
d->sentListEntries+=(uint)list.count();
} }
static void sigsegv_handler(int sig) static void sigsegv_handler(int sig)

View file

@ -336,10 +336,10 @@ void SlaveInterface::sendMessageBoxAnswer(int result)
kDebug(7007) << "message box answer" << result; kDebug(7007) << "message box answer" << result;
} }
void SlaveInterface::messageBox( int type, const QString &text, const QString &_caption, void SlaveInterface::messageBox(int type, const QString &text, const QString &caption,
const QString &buttonYes, const QString &buttonNo) const QString &buttonYes, const QString &buttonNo)
{ {
messageBox( type, text, _caption, buttonYes, buttonNo, QString() ); messageBox(type, text, caption, buttonYes, buttonNo, QString());
} }
void SlaveInterface::messageBox(int type, const QString &text, const QString &caption, void SlaveInterface::messageBox(int type, const QString &text, const QString &caption,