Commit e4dd048c authored by Ronan's avatar Ronan

fix(Address): remove equal method

parent 36b10967
......@@ -65,7 +65,7 @@ Address &Address::operator= (const Address &src) {
}
bool Address::operator== (const Address &address) const {
return equal(address);
return asString() == address.asString();
}
bool Address::operator!= (const Address &address) const {
......@@ -251,10 +251,6 @@ string Address::asStringUriOnly () const {
return out;
}
bool Address::equal (const Address &address) const {
return asString() == address.asString();
}
bool Address::weakEqual (const Address &address) const {
return getUsername() == address.getUsername() &&
getDomain() == address.getDomain() &&
......
......@@ -82,7 +82,6 @@ public:
std::string asString () const;
std::string asStringUriOnly () const;
bool equal (const Address &address) const;
bool weakEqual (const Address &address) const;
const std::string &getHeaderValue (const std::string &headerName) const;
......
......@@ -193,7 +193,7 @@ bool Conference::isMe (const Address &addr) const {
cleanedMe.setPort(0);
Address cleanedAddr = addr;
cleanedAddr.setPort(0);
return cleanedAddr.equal(cleanedMe);
return cleanedAddr == cleanedMe;
}
LINPHONE_END_NAMESPACE
......@@ -51,7 +51,7 @@ void LocalConference::addParticipant (const Address &addr, const CallSessionPara
void LocalConference::removeParticipant (const shared_ptr<const Participant> &participant) {
for (const auto &p : participants) {
if (participant->getAddress().equal(p->getAddress())) {
if (participant->getAddress() == p->getAddress()) {
participants.remove(p);
return;
}
......
......@@ -53,7 +53,7 @@ void RemoteConference::addParticipant (const Address &addr, const CallSessionPar
void RemoteConference::removeParticipant (const shared_ptr<const Participant> &participant) {
for (const auto &p : participants) {
if (participant->getAddress().equal(p->getAddress())) {
if (participant->getAddress() == p->getAddress()) {
participants.remove(p);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment