From 92cb6f680966ab828b67d7703cb968795310cd8e Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 12 Aug 2023 03:39:39 +0400 Subject: [PATCH] Remove unused variables from WindowHelper::fixMaximizedWindow --- ui/platform/win/ui_window_win.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/platform/win/ui_window_win.cpp b/ui/platform/win/ui_window_win.cpp index c0d1381..03ceee6 100644 --- a/ui/platform/win/ui_window_win.cpp +++ b/ui/platform/win/ui_window_win.cpp @@ -921,11 +921,7 @@ void WindowHelper::updateMargins() { void WindowHelper::fixMaximizedWindow() { if (::Platform::IsWindows11OrGreater()) return; - auto r = RECT(); - GetClientRect(_handle, &r); const auto style = GetWindowLongPtr(_handle, GWL_STYLE); - const auto styleEx = GetWindowLongPtr(_handle, GWL_EXSTYLE); - AdjustWindowRectEx(&r, style, false, styleEx); if (style & WS_MAXIMIZE) { auto w = RECT(); GetWindowRect(_handle, &w);