aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/domexception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/domexception.rs')
-rw-r--r--src/components/script/dom/domexception.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/script/dom/domexception.rs b/src/components/script/dom/domexception.rs
index e2b771742b5..2336c95e9a8 100644
--- a/src/components/script/dom/domexception.rs
+++ b/src/components/script/dom/domexception.rs
@@ -4,6 +4,7 @@
use dom::bindings::codegen::Bindings::DOMExceptionBinding;
use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionConstants;
+use dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMExceptionMethods;
use dom::bindings::error;
use dom::bindings::error::Error;
use dom::bindings::global::GlobalRef;
@@ -87,12 +88,6 @@ impl Reflectable for DOMException {
}
}
-pub trait DOMExceptionMethods {
- fn Code(&self) -> u16;
- fn Name(&self) -> DOMString;
- fn Message(&self) -> DOMString;
-}
-
impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> {
// http://dom.spec.whatwg.org/#dom-domexception-code
fn Code(&self) -> u16 {