mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Auto merge of #7403 - jxs:delete_get_unsound_ref_forever, r=nox
Remove get_unsound_ref_forever function closes #7383 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7403) <!-- Reviewable:end -->
This commit is contained in:
commit
7a6d8a30d3
1 changed files with 0 additions and 5 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue