diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-13 17:19:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 17:19:17 +0200 |
commit | 133d29102aa91acfcf91b60bcb4f442e40da2324 (patch) | |
tree | c756494cefe25adcc6eb08b281358b104ec833ef /modules/webrtc/webrtc_peer_connection_extension.cpp | |
parent | 41986532c18a42fc3b9273855134c207296d9350 (diff) | |
parent | 31d7e22466476865bd8c64895df79b832360fccf (diff) |
Merge pull request #61839 from Faless/webrtc/4.x_extension_static_default
Diffstat (limited to 'modules/webrtc/webrtc_peer_connection_extension.cpp')
-rw-r--r-- | modules/webrtc/webrtc_peer_connection_extension.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/modules/webrtc/webrtc_peer_connection_extension.cpp b/modules/webrtc/webrtc_peer_connection_extension.cpp index 3bc7de217e..85c04b3b19 100644 --- a/modules/webrtc/webrtc_peer_connection_extension.cpp +++ b/modules/webrtc/webrtc_peer_connection_extension.cpp @@ -31,8 +31,6 @@ #include "webrtc_peer_connection_extension.h" void WebRTCPeerConnectionExtension::_bind_methods() { - ClassDB::bind_method(D_METHOD("make_default"), &WebRTCPeerConnectionExtension::make_default); - GDVIRTUAL_BIND(_get_connection_state); GDVIRTUAL_BIND(_initialize, "p_config"); GDVIRTUAL_BIND(_create_data_channel, "p_label", "p_config"); @@ -44,11 +42,6 @@ void WebRTCPeerConnectionExtension::_bind_methods() { GDVIRTUAL_BIND(_close); } -void WebRTCPeerConnectionExtension::make_default() { - ERR_FAIL_COND_MSG(!_get_extension(), vformat("Can't make %s the default without extending it.", get_class())); - WebRTCPeerConnection::set_default_extension(get_class()); -} - WebRTCPeerConnection::ConnectionState WebRTCPeerConnectionExtension::get_connection_state() const { int state; if (GDVIRTUAL_CALL(_get_connection_state, state)) { |