From be96f1cdd058d5113647f148f35da12130324621 Mon Sep 17 00:00:00 2001 From: Leonardo Murillo Date: Fri, 22 Mar 2013 16:58:52 -0600 Subject: [PATCH] No longer need exists --- shared/src/Agent.cpp | 4 ---- shared/src/Agent.h | 1 - 2 files changed, 5 deletions(-) diff --git a/shared/src/Agent.cpp b/shared/src/Agent.cpp index 269703260f..b95c3e7dbd 100644 --- a/shared/src/Agent.cpp +++ b/shared/src/Agent.cpp @@ -162,10 +162,6 @@ bool Agent::matches(sockaddr *otherPublicSocket, sockaddr *otherLocalSocket, cha && socketMatch(localSocket, otherLocalSocket); } -bool Agent::exists(uint16_t *otherAgentId) { - return agentId == *otherAgentId; -} - std::ostream& operator<<(std::ostream& os, const Agent* agent) { sockaddr_in *agentPublicSocket = (sockaddr_in *)agent->publicSocket; sockaddr_in *agentLocalSocket = (sockaddr_in *)agent->localSocket; diff --git a/shared/src/Agent.h b/shared/src/Agent.h index e5fa583f20..087d828b49 100644 --- a/shared/src/Agent.h +++ b/shared/src/Agent.h @@ -28,7 +28,6 @@ class Agent { bool operator==(const Agent& otherAgent); bool matches(sockaddr *otherPublicSocket, sockaddr *otherLocalSocket, char otherAgentType); - bool exists(uint16_t *agentId); char getType(); void setType(char newType); uint16_t getAgentId();