Browse Source

Dead code removal.

pull/1/head
Adam Ierymenko 10 years ago
parent
commit
704205c5f7
  1. 6
      node/Switch.cpp
  2. 9
      node/Switch.hpp

6
node/Switch.cpp

@ -451,12 +451,6 @@ void Switch::requestWhois(const Address &addr)
_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)
{
{ // cancel pending WHOIS since we now know this peer

9
node/Switch.hpp

@ -138,13 +138,6 @@ public:
*/
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
*
@ -174,7 +167,7 @@ private:
const RuntimeEnvironment *const RR;
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
{
WhoisRequest() : lastSent(0),retries(0) {}

Loading…
Cancel
Save