Remove TCPPort incoming_only_ member.

TCPPort's incoming_only_ member seems unused and there was a TODO
about this. This CL just removes it.

Bug: webrtc:10198
Change-Id: I216c291159a32fa2924309affa3769a4be116fd0
Reviewed-on: https://webrtc-review.googlesource.com/c/120931
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26538}
This commit is contained in:
Mirko Bonadei 2019-02-03 00:08:18 +01:00 committed by Commit Bot
parent 167497fc2e
commit bfc9911661
2 changed files with 0 additions and 7 deletions

View File

@ -97,7 +97,6 @@ TCPPort::TCPPort(rtc::Thread* thread,
max_port,
username,
password),
incoming_only_(false),
allow_listen_(allow_listen),
socket_(NULL),
error_(0) {
@ -133,10 +132,6 @@ Connection* TCPPort::CreateConnection(const Candidate& address,
if (origin == ORIGIN_OTHER_PORT)
return NULL;
// Check if we are allowed to make outgoing TCP connections
if (incoming_only_ && (origin == ORIGIN_MESSAGE))
return NULL;
// We don't know how to act as an ssl server yet
if ((address.protocol() == SSLTCP_PROTOCOL_NAME) &&
(origin == ORIGIN_THIS_PORT)) {

View File

@ -104,8 +104,6 @@ class TCPPort : public Port {
void OnAddressReady(rtc::AsyncPacketSocket* socket,
const rtc::SocketAddress& address);
// TODO(?): Is this still needed?
bool incoming_only_;
bool allow_listen_;
rtc::AsyncPacketSocket* socket_;
int error_;