diff --git a/pc/data_channel_controller.h b/pc/data_channel_controller.h index 28a7e16eb5..6275d6249e 100644 --- a/pc/data_channel_controller.h +++ b/pc/data_channel_controller.h @@ -91,10 +91,6 @@ class DataChannelController : public SctpDataChannelControllerInterface, bool HasDataChannels() const; // At some point in time, a data channel has existed. bool HasUsedDataChannels() const; - bool HasSctpDataChannels() const { - RTC_DCHECK_RUN_ON(signaling_thread()); - return !sctp_data_channels_.empty(); - } // Accessors DataChannelTransportInterface* data_channel_transport() const; diff --git a/pc/sdp_offer_answer.cc b/pc/sdp_offer_answer.cc index 953dc86c40..8dc6d84762 100644 --- a/pc/sdp_offer_answer.cc +++ b/pc/sdp_offer_answer.cc @@ -3265,7 +3265,7 @@ bool SdpOfferAnswerHandler::CheckIfNegotiationIsNeeded() { // 4. If connection has created any RTCDataChannels, and no m= section in // description has been negotiated yet for data, return true. - if (data_channel_controller()->HasSctpDataChannels()) { + if (data_channel_controller()->HasDataChannels()) { if (!cricket::GetFirstDataContent(description->description()->contents())) return true; }