Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
lib: Remove dead code from imUI
Erik Kundt committed 1 year ago
commit 0ef39b098fa381cf9e92975114374965b6340ba3
parent d66fe438005cbb6141e23301bbdb3c1625003b77
1 file changed +0 -19
modified src/im.rs
@@ -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 {