Removing unused code

This commit is contained in:
Marco De Araujo 2025-12-25 17:00:38 -04:00
parent bb57f3264e
commit 6af471ecca
3 changed files with 1 additions and 33 deletions

View file

@ -38,7 +38,7 @@ fn layout_groups(area: Rect, groups: &[GroupViewState]) -> Vec<Rect> {
let mut areas = Vec::new();
for group in groups {
let group_lines = group.monitors.len() + 1;
let group_lines = group.monitors.len() + 2;
let group_height = (group_lines + line_height).max(1);
areas.push(Rect {
x: area.x,
@ -53,32 +53,6 @@ fn layout_groups(area: Rect, groups: &[GroupViewState]) -> Vec<Rect> {
areas
}
//fn layout_groups(area: Rect, group_count: usize) -> Vec<Rect> {
// if group_count == 0 {
// return vec![];
// }
//
// let height_per_group = (area.height as usize / group_count).max(3);
// let mut current_y = area.y;
// let mut areas = Vec::new();
//
// for _ in 0..group_count {
// if current_y + height_per_group as u16 > area.y + area.height {
// break;
// }
//
// areas.push(Rect {
// x: area.x,
// y: current_y,
// width: area.width,
// height: height_per_group as u16,
// });
//
// current_y += height_per_group as u16;
// }
// areas
//}
fn render_group(frame: &mut Frame, area: Rect, group: &GroupViewState, is_first: bool) {
let chunks = Layout::default()
.direction(Direction::Vertical)