mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Remove DerivedWrapper::wrap_shared, as it's unused.
This commit is contained in:
parent
38cea1b2d5
commit
3da1a206d8
9 changed files with 0 additions and 96 deletions
|
@ -9,7 +9,6 @@ use dom::bindings::utils::{Reflectable, BindingObject, DerivedWrapper};
|
|||
use dom::bindings::utils::{DOMString, ErrorResult, Fallible, Reflector};
|
||||
|
||||
use geom::point::Point2D;
|
||||
use js::glue::RUST_OBJECT_TO_JSVAL;
|
||||
use js::jsapi::{JSObject, JSContext, JSVal};
|
||||
|
||||
use script_task::page_from_context;
|
||||
|
@ -137,15 +136,4 @@ impl DerivedWrapper for Event {
|
|||
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, _vp: *mut JSVal) -> i32 {
|
||||
fail!(~"nyi")
|
||||
}
|
||||
|
||||
#[fixed_stack_segment]
|
||||
fn wrap_shared(@mut self, cx: *JSContext, scope: *JSObject, vp: *mut JSVal) -> i32 {
|
||||
let obj = self.wrap_object_shared(cx, scope);
|
||||
if obj.is_null() {
|
||||
return 0;
|
||||
} else {
|
||||
unsafe { *vp = RUST_OBJECT_TO_JSVAL(obj) };
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue