From 8f9b44ba38c134e1c69126196e4d9e566ca5d5e3 Mon Sep 17 00:00:00 2001 From: Tommi Date: Thu, 14 Apr 2022 14:35:28 +0200 Subject: [PATCH] Remove unused SignalConnectionCreated Bug: webrtc:11943 Change-Id: I787f200c3506a70788537cc05bff4e938ed2136d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258982 Auto-Submit: Tomas Gunnarsson Reviewed-by: Danil Chapovalov Commit-Queue: Danil Chapovalov Cr-Commit-Position: refs/heads/main@{#36552} --- p2p/base/port.cc | 1 - p2p/base/port.h | 3 --- 2 files changed, 4 deletions(-) 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.