Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
lib: Remove dead code
Erik Kundt committed 3 months ago
commit b3b240895062f05b34fe06781c7ff619db74648f
parent 04fcc84
1 file changed +0 -24
modified src/ui/widget.rs
@@ -274,30 +274,6 @@ impl<'a> Container<'a> {
    }
}

-
#[derive(Clone, Debug, Serialize, Deserialize)]
-
pub struct CompositeState {
-
    len: usize,
-
    focus: usize,
-
}
-

-
impl CompositeState {
-
    pub fn new(len: usize, focus: usize) -> Self {
-
        Self { len, focus }
-
    }
-

-
    pub fn focus(&self) -> usize {
-
        self.focus
-
    }
-

-
    pub fn len(&self) -> usize {
-
        self.len
-
    }
-

-
    pub fn is_empty(&self) -> bool {
-
        self.len == 0
-
    }
-
}
-

#[derive(Default)]
pub struct Popup {}