diff --git a/p2p/base/turn_port.cc b/p2p/base/turn_port.cc index 3b060f73e4..bb3e0786b1 100644 --- a/p2p/base/turn_port.cc +++ b/p2p/base/turn_port.cc @@ -1207,11 +1207,6 @@ bool TurnPort::EntryExists(TurnEntry* e) { return absl::c_linear_search(entries_, e); } -bool TurnPort::CreateOrRefreshEntry(const rtc::SocketAddress& addr, - int channel_number) { - return CreateOrRefreshEntry(addr, channel_number, ""); -} - bool TurnPort::CreateOrRefreshEntry(Connection* conn, int channel_number) { return CreateOrRefreshEntry(conn->remote_candidate().address(), channel_number, diff --git a/p2p/base/turn_port.h b/p2p/base/turn_port.h index 50d78ced61..640833c17b 100644 --- a/p2p/base/turn_port.h +++ b/p2p/base/turn_port.h @@ -231,9 +231,6 @@ class TurnPort : public Port { // NOTE: This method needs to be accessible for StunPort // return true if entry was created (i.e channel_number consumed). - // TODO(tommi): Remove this method in favor of the one that accepts a - // `Connection` pointer. - bool CreateOrRefreshEntry(const rtc::SocketAddress& addr, int channel_number); bool CreateOrRefreshEntry(Connection* conn, int channel_number); bool CreateOrRefreshEntry(const rtc::SocketAddress& addr,