chore(widget): remove unused RcWrapper method

This commit is contained in:
Michael Aaron Murphy 2026-01-13 17:01:57 +01:00
parent f000433690
commit b0cbb54bf2
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -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)]