mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kio: remove unused and internal KIO::SlaveBase::sendAndKeepMetaData() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0d6c466f34
commit
df7257e308
2 changed files with 1 additions and 14 deletions
|
@ -374,18 +374,13 @@ KConfigGroup *SlaveBase::config()
|
|||
}
|
||||
|
||||
void SlaveBase::sendMetaData()
|
||||
{
|
||||
sendAndKeepMetaData();
|
||||
d->m_outgoingMetaData.clear();
|
||||
}
|
||||
|
||||
void SlaveBase::sendAndKeepMetaData()
|
||||
{
|
||||
if (!d->m_outgoingMetaData.isEmpty()) {
|
||||
KIO_DATA << d->m_outgoingMetaData;
|
||||
|
||||
send(INF_META_DATA, data);
|
||||
}
|
||||
d->m_outgoingMetaData.clear();
|
||||
}
|
||||
|
||||
KRemoteEncoding *SlaveBase::remoteEncoding()
|
||||
|
|
|
@ -654,14 +654,6 @@ public:
|
|||
*/
|
||||
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.
|
||||
Check it regularly in lengthy functions (e.g. in get();) and return
|
||||
as fast as possible from this function if wasKilled() returns true.
|
||||
|
|
Loading…
Add table
Reference in a new issue