diff options
Diffstat (limited to 'src/components/script/dom/location.rs')
-rw-r--r-- | src/components/script/dom/location.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/script/dom/location.rs b/src/components/script/dom/location.rs index 1a4eead966b..2804f77957e 100644 --- a/src/components/script/dom/location.rs +++ b/src/components/script/dom/location.rs @@ -3,6 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use dom::bindings::codegen::Bindings::LocationBinding; +use dom::bindings::codegen::Bindings::LocationBinding::LocationMethods; use dom::bindings::global::Window; use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; @@ -34,12 +35,6 @@ impl Location { } } -pub trait LocationMethods { - fn Href(&self) -> DOMString; - fn Search(&self) -> DOMString; - fn Hash(&self) -> DOMString; -} - impl<'a> LocationMethods for JSRef<'a, Location> { fn Href(&self) -> DOMString { self.page.get_url().serialize() |