From 4593986fc6281bf8c66231b08f5268d7bb4ff8f1 Mon Sep 17 00:00:00 2001 From: mow Date: Thu, 15 Jan 2026 18:19:09 +0100 Subject: [PATCH] refactor: remove unused config field from AppModel The config is only needed in Noctua struct, not in AppModel. This eliminates the 'field config is never read' warning. --- src/app/model.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/model.rs b/src/app/model.rs index f475d94..0466502 100644 --- a/src/app/model.rs +++ b/src/app/model.rs @@ -46,9 +46,6 @@ pub const PAN_STEP: f32 = 50.0; /// Global application state. #[derive(Debug)] pub struct AppModel { - /// Static configuration loaded at startup. - pub config: AppConfig, - /// Currently opened document (raster/vector/portable). pub document: Option, @@ -81,9 +78,8 @@ pub struct AppModel { impl AppModel { /// Construct a new application state from configuration. - pub fn new(config: AppConfig) -> Self { + pub fn new(_config: AppConfig) -> Self { Self { - config, document: None, metadata: None, current_path: None,