Dead code removal.

This commit is contained in:
Adam Ierymenko 2016-01-12 09:33:14 -08:00
parent bbcc3304a0
commit 704205c5f7
2 changed files with 1 additions and 14 deletions

View file

@ -451,12 +451,6 @@ void Switch::requestWhois(const Address &addr)
_sendWhoisRequest(addr,(const Address *)0,0); _sendWhoisRequest(addr,(const Address *)0,0);
} }
void Switch::cancelWhoisRequest(const Address &addr)
{
Mutex::Lock _l(_outstandingWhoisRequests_m);
_outstandingWhoisRequests.erase(addr);
}
void Switch::doAnythingWaitingForPeer(const SharedPtr<Peer> &peer) void Switch::doAnythingWaitingForPeer(const SharedPtr<Peer> &peer)
{ {
{ // cancel pending WHOIS since we now know this peer { // cancel pending WHOIS since we now know this peer

View file

@ -138,13 +138,6 @@ public:
*/ */
void requestWhois(const Address &addr); void requestWhois(const Address &addr);
/**
* Cancel WHOIS for an address
*
* @param addr Address to cancel
*/
void cancelWhoisRequest(const Address &addr);
/** /**
* Run any processes that are waiting for this peer's identity * Run any processes that are waiting for this peer's identity
* *
@ -174,7 +167,7 @@ private:
const RuntimeEnvironment *const RR; const RuntimeEnvironment *const RR;
uint64_t _lastBeaconResponse; uint64_t _lastBeaconResponse;
// Outsanding WHOIS requests and how many retries they've undergone // Outstanding WHOIS requests and how many retries they've undergone
struct WhoisRequest struct WhoisRequest
{ {
WhoisRequest() : lastSent(0),retries(0) {} WhoisRequest() : lastSent(0),retries(0) {}