diff --git a/p2p/base/port.cc b/p2p/base/port.cc index 4a7daaffec..3bd09dc024 100644 --- a/p2p/base/port.cc +++ b/p2p/base/port.cc @@ -357,7 +357,6 @@ void Port::AddOrReplaceConnection(Connection* conn) { ret.first->second = conn; } conn->SignalDestroyed.connect(this, &Port::OnConnectionDestroyed); - SignalConnectionCreated(this, conn); } void Port::OnReadPacket(const char* data, diff --git a/p2p/base/port.h b/p2p/base/port.h index b2aa9b243f..33e9a53787 100644 --- a/p2p/base/port.h +++ b/p2p/base/port.h @@ -293,9 +293,6 @@ class Port : public PortInterface, // Returns the connection to the given address or NULL if none exists. Connection* GetConnection(const rtc::SocketAddress& remote_addr) override; - // Called each time a connection is created. - sigslot::signal2 SignalConnectionCreated; - // In a shared socket mode each port which shares the socket will decide // to accept the packet based on the `remote_addr`. Currently only UDP // port implemented this method.