summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-12 09:33:14 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-12 09:33:14 -0800
commit704205c5f7583527f9c9398261f1206c59f1b812 (patch)
tree229e8e1e5326d47578871e75736e92f428ee04cd /node
parentbbcc3304a0e917bfa74cd098f3137fbb03078741 (diff)
downloadinfinitytier-704205c5f7583527f9c9398261f1206c59f1b812.tar.gz
infinitytier-704205c5f7583527f9c9398261f1206c59f1b812.zip
Dead code removal.
Diffstat (limited to 'node')
-rw-r--r--node/Switch.cpp6
-rw-r--r--node/Switch.hpp9
2 files changed, 1 insertions, 14 deletions
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> &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
@@ -139,13 +139,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
*
* Called when we learn of a peer's identity from HELLO, OK(WHOIS), etc.
@@ -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) {}