system settings
git clone https://git.lucas.co/cce-system-interface.git
refactor: delete the dead actions_row Container from the System page
Declared and initialized, never read — the same dead-layer shape as the
SectionContainer fields deleted in Phase 6as. Last blocker to deleting
cce-ui's Container type.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018u7qTwzX95dd5ysAkaSCLk
src/pages/system_info.rs | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/pages/system_info.rs b/src/pages/system_info.rs
index f4db63a..3542c7c 100644
--- a/src/pages/system_info.rs
+++ b/src/pages/system_info.rs
@@ -1,6 +1,6 @@
use crate::app::{AppAction, PageContent, SectionContextExt};
use cce_ui::layout::{render_widget, PageLayoutBuilder, LayoutStrategy};
-use cce_ui::widget::{Label, Dropdown, InfoBox, Element, Button, Container};
+use cce_ui::widget::{Label, Dropdown, InfoBox, Element, Button};
#[derive(Debug, Clone, Default)]
pub struct BatteryInfo {
@@ -69,7 +69,6 @@ pub struct SystemState {
pub force_shutdown_btn: cce_ui::widget::Adapted<cce_ui::widget::Button>,
- pub actions_row: Container,
}
impl std::fmt::Debug for SystemState {
@@ -152,12 +151,6 @@ impl Default for SystemState {
.with_bg([0.67, 0.20, 0.20, 1.0])
.with_hover_bg([0.25, 0.30, 0.26, 1.0])
.with_label_color([1.0, 1.0, 1.0, 1.0]),
-
- actions_row: Container::new().with_layout(cce_ui::widget::ColumnsLayout {
- padding_x: 0.0,
- padding_y: 0.0,
- spacing: 8.0,
- }),
}
}
}