chore(widget): remove unused RcWrapper method
This commit is contained in:
parent
f000433690
commit
b0cbb54bf2
1 changed files with 0 additions and 8 deletions
|
|
@ -58,14 +58,6 @@ impl<T> RcWrapper<T> {
|
|||
let my_refmut: &mut T = &mut RefCell::borrow_mut(self.data.as_ref());
|
||||
f(my_refmut)
|
||||
}
|
||||
|
||||
/// # Panics
|
||||
///
|
||||
/// Will panic if used outside of original thread.
|
||||
pub(crate) unsafe fn as_ptr(&self) -> *mut T {
|
||||
assert_eq!(self.thread_id, thread::current().id());
|
||||
RefCell::as_ptr(self.data.as_ref())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue