Remove get_unsound_ref_forever function

closes #7383
This commit is contained in:
João Oliveira 2015-08-27 01:36:43 +01:00
parent af4c3901d8
commit 8d86f89f63

View file

@ -433,11 +433,6 @@ impl<T: Reflectable> Root<T> {
&**self
}
/// Don't use this. Don't make me find you.
pub fn get_unsound_ref_forever<'a, 'b>(&'a self) -> &'b T {
unsafe { &**self.ptr }
}
/// Generate a new root from a JS<T> reference
#[allow(unrooted_must_root)]
pub fn from_rooted(js: JS<T>) -> Root<T> {