mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove the implementation of ToJSValConvertible for JS<T>.
It is unused and doesn't serve a purpose.
This commit is contained in:
parent
d26345f868
commit
10ddb86d61
1 changed files with 1 additions and 7 deletions
|
@ -30,7 +30,7 @@
|
||||||
//! | union types | `T` |
|
//! | union types | `T` |
|
||||||
|
|
||||||
use dom::bindings::codegen::PrototypeList;
|
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::str::ByteString;
|
||||||
use dom::bindings::utils::{Reflectable, Reflector, DOMClass};
|
use dom::bindings::utils::{Reflectable, Reflector, DOMClass};
|
||||||
use util::str::DOMString;
|
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> {
|
impl<'a, T: Reflectable> ToJSValConvertible for Unrooted<T> {
|
||||||
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
|
fn to_jsval(&self, cx: *mut JSContext) -> JSVal {
|
||||||
self.reflector().to_jsval(cx)
|
self.reflector().to_jsval(cx)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue