aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcdatachannel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/rtcdatachannel.rs')
-rw-r--r--components/script/dom/rtcdatachannel.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/rtcdatachannel.rs b/components/script/dom/rtcdatachannel.rs
index 2b26bf4f8b9..24475c22323 100644
--- a/components/script/dom/rtcdatachannel.rs
+++ b/components/script/dom/rtcdatachannel.rs
@@ -282,26 +282,26 @@ impl RTCDataChannelMethods for RTCDataChannel {
// fn SetBufferedAmountLowThreshold(&self, value: u32) -> ();
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannel-close
- fn Close(&self) -> () {}
+ fn Close(&self) {}
// fn BinaryType(&self) -> DOMString;
// fn SetBinaryType(&self, value: DOMString) -> ();
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannel-send
- fn Send(&self, data: USVString) -> () {
+ fn Send(&self, data: USVString) {
if let Err(error) = self.channel.send(&data.0) {
warn!("Could not send data channel message. Error: {:?}", error);
}
}
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannel-send!overload-1
- fn Send_(&self, data: &Blob) -> () {}
+ // fn Send_(&self, data: &Blob) -> () {}
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannel-send!overload-2
- fn Send__(&self, data: CustomAutoRooterGuard<ArrayBuffer>) -> () {}
+ // fn Send__(&self, data: CustomAutoRooterGuard<ArrayBuffer>) -> () {}
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannel-send!overload-3
- fn Send___(&self, data: CustomAutoRooterGuard<ArrayBufferView>) -> () {}
+ // fn Send___(&self, data: CustomAutoRooterGuard<ArrayBufferView>) -> () {}
}
impl From<&RTCDataChannelInit> for WebRtcDataChannelInit {