mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
drop deprecated function
This commit is contained in:
parent
f34d021387
commit
9306d8ccc8
@ -79,15 +79,6 @@ class RsDisc
|
||||
* @return true on success false otherwise
|
||||
*/
|
||||
virtual bool getWaitingDiscCount(size_t &sendCount, size_t &recvCount) = 0;
|
||||
|
||||
/**
|
||||
* @brief getWaitingDiscCount get the number of queued discovery packets.
|
||||
* @param[out] sendCount number of queued outgoing packets
|
||||
* @param[out] recvCount number of queued incoming packets
|
||||
* @return true on success false otherwise
|
||||
*/
|
||||
RS_DEPRECATED
|
||||
virtual bool getWaitingDiscCount(unsigned int *sendCount, unsigned int *recvCount) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1247,28 +1247,6 @@ bool p3discovery2::setPeerVersion(const SSLID &peerId, const std::string &versio
|
||||
}
|
||||
|
||||
|
||||
bool p3discovery2::getWaitingDiscCount(unsigned int *sendCount, unsigned int *recvCount)
|
||||
{
|
||||
if (sendCount == NULL && recvCount == NULL) {
|
||||
/* Nothing to do */
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t send, recv;
|
||||
getWaitingDiscCount(send, recv);
|
||||
|
||||
if (sendCount) {
|
||||
*sendCount = send;
|
||||
}
|
||||
|
||||
if (recvCount) {
|
||||
*recvCount = recv;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*************************************************************************************/
|
||||
/* AuthGPGService */
|
||||
/*************************************************************************************/
|
||||
|
@ -91,8 +91,6 @@ virtual RsServiceInfo getServiceInfo();
|
||||
bool getDiscPgpFriends(const RsPgpId &pgpid, std::list<RsPgpId> &gpg_friends);
|
||||
bool getPeerVersion(const RsPeerId &id, std::string &version);
|
||||
bool getWaitingDiscCount(size_t &sendCount, size_t &recvCount);
|
||||
bool getWaitingDiscCount(unsigned int *sendCount, unsigned int *recvCount);
|
||||
|
||||
/************* from AuthGPService ****************/
|
||||
virtual AuthGPGOperation *getGPGOperation();
|
||||
virtual void setGPGOperation(AuthGPGOperation *operation);
|
||||
|
Loading…
Reference in New Issue
Block a user