aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
diff options
context:
space:
mode:
authortoidiu <toidiu@protonmail.com>2017-09-03 16:30:48 -0400
committertoidiu <toidiu@protonmail.com>2017-09-03 16:30:48 -0400
commit99e4504f85afe0e9fa678796735c971295c8c709 (patch)
tree32636f7e53de477ac5a3008395f72560648dc923 /components/script/dom/websocket.rs
parenta3df0cf4debadab400cc05e77a082514a4ae6c25 (diff)
downloadservo-99e4504f85afe0e9fa678796735c971295c8c709.tar.gz
servo-99e4504f85afe0e9fa678796735c971295c8c709.zip
move name implementation as default implementation to the trait and remove overrides.
Diffstat (limited to 'components/script/dom/websocket.rs')
-rw-r--r--components/script/dom/websocket.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs
index 0599677342c..f9ca15fe3c1 100644
--- a/components/script/dom/websocket.rs
+++ b/components/script/dom/websocket.rs
@@ -394,8 +394,6 @@ struct ConnectionEstablishedTask {
}
impl Runnable for ConnectionEstablishedTask {
- fn name(&self) -> &'static str { "ConnectionEstablishedTask" }
-
/// https://html.spec.whatwg.org/multipage/#feedback-from-the-protocol:concept-websocket-established
fn handler(self: Box<Self>) {
let ws = self.address.root();
@@ -426,8 +424,6 @@ impl Runnable for BufferedAmountTask {
// To be compliant with standards, we need to reset bufferedAmount only when the event loop
// reaches step 1. In our implementation, the bytes will already have been sent on a background
// thread.
- fn name(&self) -> &'static str { "BufferedAmountTask" }
-
fn handler(self: Box<Self>) {
let ws = self.address.root();
@@ -444,8 +440,6 @@ struct CloseTask {
}
impl Runnable for CloseTask {
- fn name(&self) -> &'static str { "CloseTask" }
-
fn handler(self: Box<Self>) {
let ws = self.address.root();
@@ -486,8 +480,6 @@ struct MessageReceivedTask {
}
impl Runnable for MessageReceivedTask {
- fn name(&self) -> &'static str { "MessageReceivedTask" }
-
#[allow(unsafe_code)]
fn handler(self: Box<Self>) {
let ws = self.address.root();