Remove global_root_from_reflector

This commit is contained in:
Anthony Ramine 2016-10-05 01:01:22 +02:00
parent 1fed45e393
commit 26455b8a67
4 changed files with 5 additions and 11 deletions

View file

@ -111,11 +111,6 @@ pub fn global_scope_from_reflector<T: Reflectable>(reflector: &T) -> Root<Global
unsafe { global_scope_from_object(*reflector.reflector().get_jsobject()) }
}
/// Returns the global object of the realm that the given DOM object's reflector was created in.
pub fn global_root_from_reflector<T: Reflectable>(reflector: &T) -> GlobalRoot {
unsafe { global_root_from_object(*reflector.reflector().get_jsobject()) }
}
/// Returns the Rust global scope from a JS global object.
unsafe fn global_scope_from_global(global: *mut JSObject) -> Root<GlobalScope> {
assert!(!global.is_null());