Remove unused DerivedWrapper implementations.

This commit is contained in:
Ms2ger 2013-10-18 16:13:35 +02:00
parent 3da1a206d8
commit f585d218cb
7 changed files with 14 additions and 57 deletions

View file

@ -3,11 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::DOMParserBinding;
use dom::bindings::utils::{Reflectable, Reflector};
use dom::bindings::utils::{BindingObject, DerivedWrapper};
use dom::bindings::utils::{BindingObject, Reflectable, Reflector};
use dom::domparser::DOMParser;
use js::jsapi::{JSContext, JSObject, JSVal};
use js::jsapi::{JSContext, JSObject};
impl Reflectable for DOMParser {
fn reflector<'a>(&'a self) -> &'a Reflector {
@ -28,9 +27,3 @@ impl BindingObject for DOMParser {
Some(self.owner as @mut Reflectable)
}
}
impl DerivedWrapper for DOMParser {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}

View file

@ -2,11 +2,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::utils::{Reflectable, Reflector, BindingObject, DerivedWrapper};
use dom::bindings::utils::{Reflectable, Reflector, BindingObject};
use dom::bindings::codegen::ClientRectBinding;
use script_task::page_from_context;
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSObject, JSContext};
pub struct ClientRect {
reflector_: Reflector,
@ -80,9 +80,3 @@ impl BindingObject for ClientRect {
}
}
}
impl DerivedWrapper for ClientRect {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}

View file

@ -5,11 +5,11 @@
use dom::eventtarget::EventTarget;
use dom::window::Window;
use dom::bindings::codegen::EventBinding;
use dom::bindings::utils::{Reflectable, BindingObject, DerivedWrapper};
use dom::bindings::utils::{Reflectable, BindingObject};
use dom::bindings::utils::{DOMString, ErrorResult, Fallible, Reflector};
use geom::point::Point2D;
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSObject, JSContext};
use script_task::page_from_context;
@ -131,9 +131,3 @@ impl BindingObject for Event {
}
}
}
impl DerivedWrapper for Event {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}

View file

@ -3,10 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::codegen::EventTargetBinding;
use dom::bindings::utils::{Reflectable, Reflector, BindingObject, DerivedWrapper};
use dom::bindings::utils::{Reflectable, Reflector, BindingObject};
use script_task::page_from_context;
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSObject, JSContext};
pub struct EventTarget {
reflector_: Reflector
@ -47,9 +47,3 @@ impl BindingObject for EventTarget {
}
}
}
impl DerivedWrapper for EventTarget {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}

View file

@ -2,13 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::utils::{Reflectable, BindingObject, DerivedWrapper};
use dom::bindings::utils::{Reflectable, BindingObject};
use dom::bindings::utils::{Reflector, DOMString, null_str_as_empty};
use dom::bindings::codegen::FormDataBinding;
use dom::blob::Blob;
use script_task::{page_from_context};
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSObject, JSContext};
use std::hashmap::HashMap;
@ -69,9 +69,3 @@ impl BindingObject for FormData {
}
}
}
impl DerivedWrapper for FormData {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}

View file

@ -4,13 +4,13 @@
use dom::bindings::codegen::MouseEventBinding;
use dom::bindings::utils::{ErrorResult, Fallible, DOMString};
use dom::bindings::utils::{Reflectable, Reflector, BindingObject, DerivedWrapper};
use dom::bindings::utils::{Reflectable, Reflector, BindingObject};
use dom::eventtarget::EventTarget;
use dom::uievent::UIEvent;
use dom::window::Window;
use dom::windowproxy::WindowProxy;
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSObject, JSContext};
pub struct MouseEvent {
parent: UIEvent,
@ -160,9 +160,3 @@ impl BindingObject for MouseEvent {
self.parent.GetParentObject(cx)
}
}
impl DerivedWrapper for MouseEvent {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}

View file

@ -4,13 +4,13 @@
use dom::bindings::codegen::UIEventBinding;
use dom::bindings::utils::{DOMString, Fallible};
use dom::bindings::utils::{Reflectable, Reflector, BindingObject, DerivedWrapper};
use dom::bindings::utils::{Reflectable, Reflector, BindingObject};
use dom::node::{AbstractNode, ScriptView};
use dom::event::Event;
use dom::window::Window;
use dom::windowproxy::WindowProxy;
use js::jsapi::{JSObject, JSContext, JSVal};
use js::jsapi::{JSObject, JSContext};
pub struct UIEvent {
parent: Event,
@ -133,9 +133,3 @@ impl BindingObject for UIEvent {
self.parent.GetParentObject(cx)
}
}
impl DerivedWrapper for UIEvent {
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
fail!(~"nyi")
}
}