Remove the implementation of ToJSValConvertible for JS<T>.

It is unused and doesn't serve a purpose.
This commit is contained in:
Ms2ger 2015-02-21 11:09:06 +01:00
parent d26345f868
commit 10ddb86d61

View file

@ -30,7 +30,7 @@
//! | union types | `T` |
use dom::bindings::codegen::PrototypeList;
use dom::bindings::js::{JS, JSRef, Root, Unrooted};
use dom::bindings::js::{JSRef, Root, Unrooted};
use dom::bindings::str::ByteString;
use dom::bindings::utils::{Reflectable, Reflector, DOMClass};
use util::str::DOMString;
@ -522,12 +522,6 @@ impl<'a, T: Reflectable> ToJSValConvertible for JSRef<'a, T> {
}
}
impl<'a, T: Reflectable> ToJSValConvertible for JS<T> {
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
self.reflector().to_jsval(cx)
}
}
impl<'a, T: Reflectable> ToJSValConvertible for Unrooted<T> {
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
self.reflector().to_jsval(cx)