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:
parent
167497fc2e
commit
bfc9911661
@ -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)) {
|
||||
|
||||
@ -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_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user