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;
KIO::filesize_t totalSize;
KIO::filesize_t sentListEntries;
KRemoteEncoding *remotefile;
time_t timeout;
enum { Idle, InsideMethod, FinishedCalled, ErrorCalled } m_state;
@ -262,9 +261,7 @@ SlaveBase::SlaveBase( const QByteArray &protocol,
d->wasKilled=false;
d->last_tv.tv_sec = 0;
d->last_tv.tv_usec = 0;
// d->processed_size = 0;
d->totalSize=0;
d->sentListEntries=0;
d->timeout = 0;
connectSlave(QFile::decodeName(app_socket));
@ -457,7 +454,6 @@ void SlaveBase::error( int _errid, const QString &_text )
send( MSG_ERROR, data );
//reset
d->sentListEntries=0;
d->totalSize=0;
d->inOpenLoop=false;
}
@ -484,7 +480,6 @@ void SlaveBase::finished()
send( MSG_FINISHED );
// reset
d->sentListEntries=0;
d->totalSize=0;
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()
d->totalSize=_bytes;
d->sentListEntries=0;
}
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->processed_size = _bytes;
}
void SlaveBase::written( KIO::filesize_t _bytes )
@ -691,7 +684,6 @@ void SlaveBase::listEntries( const UDSEntryList& list )
for (; it != end; ++it)
stream << *it;
send( MSG_LIST_ENTRIES, data);
d->sentListEntries+=(uint)list.count();
}
static void sigsegv_handler(int sig)

View file

@ -330,20 +330,20 @@ void SlaveInterface::sendMessageBoxAnswer(int result)
d->connection->resume();
}
QByteArray packedArgs;
QDataStream stream( &packedArgs, QIODevice::WriteOnly );
QDataStream stream(&packedArgs, QIODevice::WriteOnly);
stream << result;
d->connection->sendnow(CMD_MESSAGEBOXANSWER, packedArgs);
kDebug(7007) << "message box answer" << result;
}
void SlaveInterface::messageBox( int type, const QString &text, const QString &_caption,
const QString &buttonYes, const QString &buttonNo )
void SlaveInterface::messageBox(int type, const QString &text, const QString &caption,
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,
const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName )
void SlaveInterface::messageBox(int type, const QString &text, const QString &caption,
const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName)
{
Q_D(SlaveInterface);
@ -371,7 +371,7 @@ void SlaveInterface::messageBox( int type, const QString &text, const QString &c
globalUserNotificationHandler()->requestMessageBox(this, type, data);
}
void SlaveInterface::setWindow (QWidget* window)
void SlaveInterface::setWindow(QWidget* window)
{
Q_D(SlaveInterface);
d->parentWindow = window;