auto merge of #5001 : Ms2ger/servo/JS-to_jsval, r=jdm

It is unused and doesn't serve a purpose.
This commit is contained in:
bors-servo 2015-02-21 05:03:51 -07:00
commit ea9b0909bd

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)