drop deprecated function

This commit is contained in:
sehraf 2018-09-08 08:58:42 +02:00
parent f34d021387
commit 9306d8ccc8
No known key found for this signature in database
GPG Key ID: DF09F6EAE356B2C6
3 changed files with 0 additions and 33 deletions

View File

@ -79,15 +79,6 @@ class RsDisc
* @return true on success false otherwise * @return true on success false otherwise
*/ */
virtual bool getWaitingDiscCount(size_t &sendCount, size_t &recvCount) = 0; 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 #endif

View File

@ -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 */ /* AuthGPGService */
/*************************************************************************************/ /*************************************************************************************/

View File

@ -91,8 +91,6 @@ virtual RsServiceInfo getServiceInfo();
bool getDiscPgpFriends(const RsPgpId &pgpid, std::list<RsPgpId> &gpg_friends); bool getDiscPgpFriends(const RsPgpId &pgpid, std::list<RsPgpId> &gpg_friends);
bool getPeerVersion(const RsPeerId &id, std::string &version); bool getPeerVersion(const RsPeerId &id, std::string &version);
bool getWaitingDiscCount(size_t &sendCount, size_t &recvCount); bool getWaitingDiscCount(size_t &sendCount, size_t &recvCount);
bool getWaitingDiscCount(unsigned int *sendCount, unsigned int *recvCount);
/************* from AuthGPService ****************/ /************* from AuthGPService ****************/
virtual AuthGPGOperation *getGPGOperation(); virtual AuthGPGOperation *getGPGOperation();
virtual void setGPGOperation(AuthGPGOperation *operation); virtual void setGPGOperation(AuthGPGOperation *operation);