From 704205c5f7583527f9c9398261f1206c59f1b812 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 12 Jan 2016 09:33:14 -0800 Subject: Dead code removal. --- node/Switch.cpp | 6 ------ node/Switch.hpp | 9 +-------- 2 files changed, 1 insertion(+), 14 deletions(-) (limited to 'node') diff --git a/node/Switch.cpp b/node/Switch.cpp index d7d29f93..c17b8d1b 100644 --- a/node/Switch.cpp +++ b/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) { { // cancel pending WHOIS since we now know this peer diff --git a/node/Switch.hpp b/node/Switch.hpp index 1964d1ee..a63ec1bb 100644 --- a/node/Switch.hpp +++ b/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) {} -- cgit v1.2.3