kio: remove unused and internal KIO::SlaveBase::sendAndKeepMetaData() method

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-02 06:38:46 +03:00
parent 0d6c466f34
commit df7257e308
2 changed files with 1 additions and 14 deletions

View file

@ -374,18 +374,13 @@ KConfigGroup *SlaveBase::config()
} }
void SlaveBase::sendMetaData() void SlaveBase::sendMetaData()
{
sendAndKeepMetaData();
d->m_outgoingMetaData.clear();
}
void SlaveBase::sendAndKeepMetaData()
{ {
if (!d->m_outgoingMetaData.isEmpty()) { if (!d->m_outgoingMetaData.isEmpty()) {
KIO_DATA << d->m_outgoingMetaData; KIO_DATA << d->m_outgoingMetaData;
send(INF_META_DATA, data); send(INF_META_DATA, data);
} }
d->m_outgoingMetaData.clear();
} }
KRemoteEncoding *SlaveBase::remoteEncoding() KRemoteEncoding *SlaveBase::remoteEncoding()

View file

@ -654,14 +654,6 @@ public:
*/ */
void sendMetaData(); void sendMetaData();
/**
* Internal function to transmit meta data to the application.
* Like sendMetaData() but m_outgoingMetaData will not be cleared.
* This method is mainly useful in code that runs before the slave is connected
* to its final job.
*/
void sendAndKeepMetaData();
/** If your ioslave was killed by a signal, wasKilled() returns true. /** If your ioslave was killed by a signal, wasKilled() returns true.
Check it regularly in lengthy functions (e.g. in get();) and return Check it regularly in lengthy functions (e.g. in get();) and return
as fast as possible from this function if wasKilled() returns true. as fast as possible from this function if wasKilled() returns true.