Remove Reflectable::GetParentObject.

This commit is contained in:
Ms2ger 2013-11-03 15:00:02 +01:00
parent edd9c1d5eb
commit 80a6103f7d
23 changed files with 3 additions and 154 deletions

View file

@ -3,9 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::bindings::utils::{Reflectable, Reflector};
use script_task::page_from_context;
use js::jsapi::JSContext;
pub struct WindowProxy {
reflector_: Reflector
@ -27,11 +24,4 @@ impl Reflectable for WindowProxy {
fn mut_reflector<'a>(&'a mut self) -> &'a mut Reflector {
&mut self.reflector_
}
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
let page = page_from_context(cx);
unsafe {
Some((*page).frame.get_ref().window as @mut Reflectable)
}
}
}