From b0cbb54bf2b3528c895f7636c7ad1fd520fd2a9e Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Tue, 13 Jan 2026 17:01:57 +0100 Subject: [PATCH] chore(widget): remove unused RcWrapper method --- src/widget/wrapper.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/widget/wrapper.rs b/src/widget/wrapper.rs index 92f26fd..59c0a37 100644 --- a/src/widget/wrapper.rs +++ b/src/widget/wrapper.rs @@ -58,14 +58,6 @@ impl RcWrapper { 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)]