mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
Remove some RsPeers related dead code
This commit is contained in:
parent
563260d012
commit
ab93d31d17
3 changed files with 4 additions and 35 deletions
|
@ -115,19 +115,7 @@ std::string RsPeerNetModeString(uint32_t netModel)
|
|||
|
||||
|
||||
p3Peers::p3Peers(p3LinkMgr *lm, p3PeerMgr *pm, p3NetMgr *nm)
|
||||
:mLinkMgr(lm), mPeerMgr(pm), mNetMgr(nm)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
bool p3Peers::hasExportMinimal()
|
||||
{
|
||||
#ifdef GPGME_EXPORT_MODE_MINIMAL
|
||||
return true ;
|
||||
#else
|
||||
return false ;
|
||||
#endif
|
||||
}
|
||||
:mLinkMgr(lm), mPeerMgr(pm), mNetMgr(nm) {}
|
||||
|
||||
/* Updates ... */
|
||||
bool p3Peers::FriendsChanged(bool add)
|
||||
|
@ -1677,22 +1665,6 @@ bool p3Peers::cleanCertificate(const std::string &certstr, std::string &cleanCer
|
|||
return res;
|
||||
}
|
||||
|
||||
bool p3Peers::saveCertificateToFile(const RsPeerId &id, const std::string &/*fname*/)
|
||||
{
|
||||
/* remove unused parameter warnings */
|
||||
(void) id;
|
||||
|
||||
#ifdef P3PEERS_DEBUG
|
||||
std::cerr << "p3Peers::SaveCertificateToFile() not implemented yet " << id;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
// ensureExtension(fname, "pqi");
|
||||
//
|
||||
// return AuthSSL::getAuthSSL()->SaveCertificateToFile(id, fname);
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string p3Peers::saveCertificateToString(const RsPeerId &id)
|
||||
{
|
||||
#ifdef P3PEERS_DEBUG
|
||||
|
|
|
@ -159,14 +159,11 @@ public:
|
|||
const std::string& invite,
|
||||
ServicePermissionFlags flags = RS_NODE_PERM_DEFAULT );
|
||||
|
||||
virtual bool hasExportMinimal();
|
||||
|
||||
virtual bool loadCertificateFromString(const std::string& cert, RsPeerId& ssl_id,RsPgpId& pgp_id, std::string& error_string);
|
||||
virtual bool loadPgpKeyFromBinaryData( const unsigned char *bin_key_data,uint32_t bin_key_len, RsPgpId& gpg_id, std::string& error_string );
|
||||
virtual bool loadDetailsFromStringCert(const std::string &cert, RsPeerDetails &pd, uint32_t& error_code);
|
||||
|
||||
virtual bool cleanCertificate(const std::string &certstr, std::string &cleanCert, bool &is_short_format, uint32_t& error_code) override;
|
||||
virtual bool saveCertificateToFile(const RsPeerId &id, const std::string &fname);
|
||||
virtual std::string saveCertificateToString(const RsPeerId &id);
|
||||
|
||||
virtual bool signGPGCertificate(const RsPgpId &id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue