mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 14:30:31 +08:00
lib: Remove dead code from imUI
This commit is contained in:
@@ -327,25 +327,6 @@ impl Ui {
|
||||
|
||||
InnerResponse::new(inner, Response::default())
|
||||
}
|
||||
|
||||
pub fn block<R>(
|
||||
&mut self,
|
||||
layout: Layout,
|
||||
add_contents: impl FnOnce(&mut Self) -> R,
|
||||
) -> InnerResponse<R> {
|
||||
self.block_dyn(layout, Box::new(add_contents))
|
||||
}
|
||||
|
||||
pub fn block_dyn<'a, R>(
|
||||
&mut self,
|
||||
layout: Layout,
|
||||
add_contents: Box<dyn FnOnce(&mut Self) -> R + 'a>,
|
||||
) -> InnerResponse<R> {
|
||||
let mut child_ui = self.child_ui(self.area(), layout);
|
||||
let inner = add_contents(&mut child_ui);
|
||||
|
||||
InnerResponse::new(inner, Response::default())
|
||||
}
|
||||
}
|
||||
|
||||
impl Ui {
|
||||
|
||||
Reference in New Issue
Block a user