From 12312212ce4ffa894ec08336126b2cb5d70efd82 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 13:51:37 +0000 Subject: [PATCH] chore: gate legacy migration functions with #[cfg(windows)] Replaced #[allow(dead_code)] with #[cfg(windows)] for `migrate_from_numeric_id` and `get_theme_from_numeric_id` in `src/icon_manager.rs`. These functions are only used for Windows-specific legacy settings migration, and gating them correctly resolves dead code warnings on other platforms. Co-authored-by: bearice <270121+bearice@users.noreply.github.com> --- src/icon_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icon_manager.rs b/src/icon_manager.rs index 4cb2a51..1f97ed1 100644 --- a/src/icon_manager.rs +++ b/src/icon_manager.rs @@ -224,7 +224,7 @@ impl IconManager { } // Migration support - convert old numeric IDs to string IDs - #[allow(dead_code)] + #[cfg(windows)] pub fn migrate_from_numeric_id(old_id: usize) -> String { let is_cat = (old_id & 2) == 0; @@ -235,7 +235,7 @@ impl IconManager { } } - #[allow(dead_code)] + #[cfg(windows)] pub fn get_theme_from_numeric_id(old_id: usize) -> Theme { let is_dark = (old_id & 1) == 0; if is_dark {