From 7c49a736ec628150fd656e50a24ad2541b28f3ef Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Wed, 18 Feb 2026 14:23:09 +0100 Subject: [PATCH] refactor(cosmic-theme): remove `Theme::apply_exports_static` Recently-added method is redundant with `apply_exports`, and the dark mode preference is already defined in the theme being applied. --- cosmic-theme/src/output/mod.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/cosmic-theme/src/output/mod.rs b/cosmic-theme/src/output/mod.rs index 61f0e49..37271db 100644 --- a/cosmic-theme/src/output/mod.rs +++ b/cosmic-theme/src/output/mod.rs @@ -41,19 +41,6 @@ impl Theme { Ok(()) } - #[inline] - /// To avoid rewriting too much code, I replaced calls to `Theme::apply_gtk` with this. - /// Note that vscode isn't touched by this function. - pub fn apply_exports_static(is_dark: bool) -> Result<(), OutputError> { - let gtk_res = Theme::apply_gtk(is_dark); - let qt_res = Theme::apply_qt(is_dark); - let qt56ct_res = Theme::apply_qt56ct(is_dark); - gtk_res?; - qt_res?; - qt56ct_res?; - Ok(()) - } - #[inline] pub fn write_exports(&self) -> Result<(), OutputError> { let gtk_res = self.write_gtk4();