From 6ec6bcafbf50fb074b03abfb74021990a37a8483 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 4 Oct 2021 04:26:10 +0200 Subject: [PATCH] win32: Remove unused variables --- gdk/win32/gdksurface-win32.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index 75bf874a9e..c26ac5e9f3 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -1160,8 +1160,6 @@ gdk_win32_surface_move_resize_internal (GdkSurface *window, int width, int height) { - GdkWin32Surface *surface = GDK_WIN32_SURFACE (window); - /* We ignore changes to the window being moved or resized by the user, as we don't want to fight the user */ if (GDK_SURFACE_HWND (window) == _modal_move_resize_window) @@ -1219,7 +1217,6 @@ gdk_win32_surface_layout_popup (GdkSurface *surface, int height, GdkPopupLayout *layout) { - GdkWin32Surface *impl = GDK_WIN32_SURFACE (surface); GdkMonitor *monitor; GdkRectangle bounds; GdkRectangle final_rect; @@ -1835,7 +1832,6 @@ _gdk_win32_surface_lacks_wm_decorations (GdkSurface *window) void _gdk_win32_surface_update_style_bits (GdkSurface *window) { - GdkWin32Surface *impl = (GdkWin32Surface *)window; GdkWMDecoration decorations; LONG old_style, new_style, old_exstyle, new_exstyle; gboolean all; @@ -4117,8 +4113,6 @@ gdk_win32_surface_minimize (GdkSurface *window) static void gdk_win32_surface_maximize (GdkSurface *window) { - GdkWin32Surface *impl; - g_return_if_fail (GDK_IS_SURFACE (window)); if (GDK_SURFACE_DESTROYED (window)) @@ -4128,8 +4122,6 @@ gdk_win32_surface_maximize (GdkSurface *window) GDK_SURFACE_HWND (window), _gdk_win32_surface_state_to_string (window->state))); - impl = GDK_WIN32_SURFACE (window); - if (GDK_SURFACE_IS_MAPPED (window)) GtkShowWindow (window, SW_MAXIMIZE); else