kio: remove unused member

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-05 04:48:20 +03:00
parent 9375b3ce72
commit dfc39666d2
3 changed files with 4 additions and 31 deletions

View file

@ -903,12 +903,6 @@ void TransferJob::slotDataReq()
KIO::filesize_t size = processedAmount(KJob::Bytes)+dataForSlave.size(); KIO::filesize_t size = processedAmount(KJob::Bytes)+dataForSlave.size();
setProcessedAmount(KJob::Bytes, size); setProcessedAmount(KJob::Bytes, size);
} }
if (d->m_subJob) {
// Bitburger protocol in action
d->internalSuspend(); // Wait for more data from subJob.
d->m_subJob->d_func()->internalResume(); // Ask for more!
}
} }
void TransferJobPrivate::internalSuspend() void TransferJobPrivate::internalSuspend()
@ -981,20 +975,6 @@ void TransferJobPrivate::slotCanResume(KIO::filesize_t offset)
emit q->canResume(q, offset); emit q->canResume(q, offset);
} }
void TransferJob::slotResult(KJob *job)
{
Q_D(TransferJob);
// This can only be our subjob.
Q_ASSERT(job == d->m_subJob);
SimpleJob::slotResult(job);
if (!error() && job == d->m_subJob) {
d->m_subJob = 0; // No action required
d->internalResume(); // Make sure we get the remaining data.
}
}
void TransferJob::setModificationTime(const QDateTime &mtime) void TransferJob::setModificationTime(const QDateTime &mtime)
{ {
addMetaData("modified", mtime.toString(Qt::ISODate)); addMetaData("modified", mtime.toString(Qt::ISODate));

View file

@ -233,16 +233,15 @@ namespace KIO {
class TransferJobPrivate: public SimpleJobPrivate class TransferJobPrivate: public SimpleJobPrivate
{ {
public: public:
inline TransferJobPrivate(const KUrl& url, int command, const QByteArray &packedArgs) TransferJobPrivate(const KUrl& url, int command, const QByteArray &packedArgs)
: SimpleJobPrivate(url, command, packedArgs), : SimpleJobPrivate(url, command, packedArgs),
m_internalSuspended(false), m_internalSuspended(false)
m_subJob(0) {
{ } }
bool m_internalSuspended; bool m_internalSuspended;
KUrl m_redirectionURL; KUrl m_redirectionURL;
KUrl::List m_redirectionList; KUrl::List m_redirectionList;
TransferJob *m_subJob;
/** /**
* Flow control. Suspend data processing from the slave. * Flow control. Suspend data processing from the slave.

View file

@ -485,12 +485,6 @@ namespace KIO {
void setTotalSize(KIO::filesize_t bytes); void setTotalSize(KIO::filesize_t bytes);
protected: protected:
/**
* Called when m_subJob finishes.
* @param job the job that finished
*/
virtual void slotResult( KJob *job );
/** /**
* Reimplemented for internal reasons * Reimplemented for internal reasons
*/ */