diff options
author | toidiu <toidiu@protonmail.com> | 2017-09-03 16:30:48 -0400 |
---|---|---|
committer | toidiu <toidiu@protonmail.com> | 2017-09-03 16:30:48 -0400 |
commit | 99e4504f85afe0e9fa678796735c971295c8c709 (patch) | |
tree | 32636f7e53de477ac5a3008395f72560648dc923 /components/script/dom/eventsource.rs | |
parent | a3df0cf4debadab400cc05e77a082514a4ae6c25 (diff) | |
download | servo-99e4504f85afe0e9fa678796735c971295c8c709.tar.gz servo-99e4504f85afe0e9fa678796735c971295c8c709.zip |
move name implementation as default implementation to the trait and remove overrides.
Diffstat (limited to 'components/script/dom/eventsource.rs')
-rw-r--r-- | components/script/dom/eventsource.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/dom/eventsource.rs b/components/script/dom/eventsource.rs index dd38bb99252..20f01b39c85 100644 --- a/components/script/dom/eventsource.rs +++ b/components/script/dom/eventsource.rs @@ -474,8 +474,6 @@ pub struct AnnounceConnectionRunnable { } impl Runnable for AnnounceConnectionRunnable { - fn name(&self) -> &'static str { "EventSource AnnounceConnectionRunnable" } - // https://html.spec.whatwg.org/multipage/#announce-the-connection fn handler(self: Box<AnnounceConnectionRunnable>) { let event_source = self.event_source.root(); @@ -491,8 +489,6 @@ pub struct FailConnectionRunnable { } impl Runnable for FailConnectionRunnable { - fn name(&self) -> &'static str { "EventSource FailConnectionRunnable" } - // https://html.spec.whatwg.org/multipage/#fail-the-connection fn handler(self: Box<FailConnectionRunnable>) { let event_source = self.event_source.root(); @@ -509,8 +505,6 @@ pub struct ReestablishConnectionRunnable { } impl Runnable for ReestablishConnectionRunnable { - fn name(&self) -> &'static str { "EventSource ReestablishConnectionRunnable" } - // https://html.spec.whatwg.org/multipage/#reestablish-the-connection fn handler(self: Box<ReestablishConnectionRunnable>) { let event_source = self.event_source.root(); @@ -568,8 +562,6 @@ pub struct DispatchEventRunnable { } impl Runnable for DispatchEventRunnable { - fn name(&self) -> &'static str { "EventSource DispatchEventRunnable" } - // https://html.spec.whatwg.org/multipage/#dispatchMessage fn handler(self: Box<DispatchEventRunnable>) { let event_source = self.event_source.root(); |