mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Remove Reflectable::GetParentObject.
This commit is contained in:
parent
edd9c1d5eb
commit
80a6103f7d
23 changed files with 3 additions and 154 deletions
|
@ -6,8 +6,6 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
|||
use dom::bindings::codegen::ValidityStateBinding;
|
||||
use dom::window::Window;
|
||||
|
||||
use js::jsapi::JSContext;
|
||||
|
||||
pub struct ValidityState {
|
||||
reflector_: Reflector,
|
||||
window: @mut Window,
|
||||
|
@ -75,8 +73,4 @@ impl Reflectable for ValidityState {
|
|||
fn mut_reflector<'a>(&'a mut self) -> &'a mut Reflector {
|
||||
&mut self.reflector_
|
||||
}
|
||||
|
||||
fn GetParentObject(&self, _cx: *JSContext) -> Option<@mut Reflectable> {
|
||||
Some(self.window as @mut Reflectable)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue