From ee38566d7444bfecb6e304e45a16801c6c17f539 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 20 Oct 2022 12:14:26 +0200 Subject: [PATCH] Remove unused DPI scale function in standalone --- src/wrapper/standalone/wrapper.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wrapper/standalone/wrapper.rs b/src/wrapper/standalone/wrapper.rs index 04283488..df039dc3 100644 --- a/src/wrapper/standalone/wrapper.rs +++ b/src/wrapper/standalone/wrapper.rs @@ -334,15 +334,6 @@ impl Wrapper { push_successful } - /// The DPI scale factor for this standalone application - pub fn dpi_scale(&self) -> f32 { - // DPI scaling should be ignored on macOS since the OS already handles this - #[cfg(target_os = "macos")] - return 1.0; - #[cfg(not(target_os = "macos"))] - return self.config.dpi_scale; - } - /// Get the plugin's state object, may be called by the plugin's GUI as part of its own preset /// management. The wrapper doesn't use these functions and serializes and deserializes directly /// the JSON in the relevant plugin API methods instead.