mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
No longer need exists
This commit is contained in:
parent
61c866a34c
commit
be96f1cdd0
2 changed files with 0 additions and 5 deletions
|
@ -162,10 +162,6 @@ bool Agent::matches(sockaddr *otherPublicSocket, sockaddr *otherLocalSocket, cha
|
||||||
&& socketMatch(localSocket, otherLocalSocket);
|
&& socketMatch(localSocket, otherLocalSocket);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Agent::exists(uint16_t *otherAgentId) {
|
|
||||||
return agentId == *otherAgentId;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const Agent* agent) {
|
std::ostream& operator<<(std::ostream& os, const Agent* agent) {
|
||||||
sockaddr_in *agentPublicSocket = (sockaddr_in *)agent->publicSocket;
|
sockaddr_in *agentPublicSocket = (sockaddr_in *)agent->publicSocket;
|
||||||
sockaddr_in *agentLocalSocket = (sockaddr_in *)agent->localSocket;
|
sockaddr_in *agentLocalSocket = (sockaddr_in *)agent->localSocket;
|
||||||
|
|
|
@ -28,7 +28,6 @@ class Agent {
|
||||||
bool operator==(const Agent& otherAgent);
|
bool operator==(const Agent& otherAgent);
|
||||||
|
|
||||||
bool matches(sockaddr *otherPublicSocket, sockaddr *otherLocalSocket, char otherAgentType);
|
bool matches(sockaddr *otherPublicSocket, sockaddr *otherLocalSocket, char otherAgentType);
|
||||||
bool exists(uint16_t *agentId);
|
|
||||||
char getType();
|
char getType();
|
||||||
void setType(char newType);
|
void setType(char newType);
|
||||||
uint16_t getAgentId();
|
uint16_t getAgentId();
|
||||||
|
|
Loading…
Reference in a new issue