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.
This commit is contained in:
mow 2026-01-15 18:19:09 +01:00
parent 68b21215f4
commit 4593986fc6

View file

@ -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<DocumentContent>,
@ -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,