No longer need exists

This commit is contained in:
Leonardo Murillo 2013-03-22 16:58:52 -06:00
parent 61c866a34c
commit be96f1cdd0
2 changed files with 0 additions and 5 deletions

View file

@ -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;

View file

@ -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();