Browse Source

Dead code removal.

Adam Ierymenko 9 years ago
parent
commit
704205c5f7
2 changed files with 1 additions and 14 deletions
  1. 0 6
      node/Switch.cpp
  2. 1 8
      node/Switch.hpp

+ 0 - 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

+ 1 - 8
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) {}