diff --git a/src/im.rs b/src/im.rs index 7638943a..dfa7ee05 100644 --- a/src/im.rs +++ b/src/im.rs @@ -327,25 +327,6 @@ impl Ui { InnerResponse::new(inner, Response::default()) } - - pub fn block( - &mut self, - layout: Layout, - add_contents: impl FnOnce(&mut Self) -> R, - ) -> InnerResponse { - self.block_dyn(layout, Box::new(add_contents)) - } - - pub fn block_dyn<'a, R>( - &mut self, - layout: Layout, - add_contents: Box R + 'a>, - ) -> InnerResponse { - let mut child_ui = self.child_ui(self.area(), layout); - let inner = add_contents(&mut child_ui); - - InnerResponse::new(inner, Response::default()) - } } impl Ui {