diff options
Diffstat (limited to 'components/script/dom/workerlocation.rs')
-rw-r--r-- | components/script/dom/workerlocation.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/workerlocation.rs b/components/script/dom/workerlocation.rs index 483cb69c084..d96aea8011c 100644 --- a/components/script/dom/workerlocation.rs +++ b/components/script/dom/workerlocation.rs @@ -6,7 +6,7 @@ use crate::dom::bindings::codegen::Bindings::WorkerLocationBinding; use crate::dom::bindings::codegen::Bindings::WorkerLocationBinding::WorkerLocationMethods; use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; use crate::dom::bindings::root::DomRoot; -use crate::dom::bindings::str::{DOMString, USVString}; +use crate::dom::bindings::str::USVString; use crate::dom::urlhelper::UrlHelper; use crate::dom::workerglobalscope::WorkerGlobalScope; use dom_struct::dom_struct; @@ -87,9 +87,4 @@ impl WorkerLocationMethods for WorkerLocation { fn Search(&self) -> USVString { UrlHelper::Search(&self.url) } - - // https://html.spec.whatwg.org/multipage/#dom-workerlocation-href - fn Stringifier(&self) -> DOMString { - DOMString::from(self.Href().0) - } } |