From 8307d9c4de3dff442750d28269b1a200fc35abb6 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 13 Jun 2017 18:37:50 -0300 Subject: [PATCH] edge-resistance: Remove useless variable There is a variable in meta_window_edge_resistance_for_resize that isn't really helpful: it just assumes TRUE, and is passed to apply_edge_resistance_to_each_side. This patch removes that useless variable and simply pass TRUE instead. https://bugzilla.gnome.org/show_bug.cgi?id=645153 --- src/core/edge-resistance.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/edge-resistance.c b/src/core/edge-resistance.c index 204165a70..d3636e08c 100644 --- a/src/core/edge-resistance.c +++ b/src/core/edge-resistance.c @@ -1267,7 +1267,6 @@ meta_window_edge_resistance_for_resize (MetaWindow *window, { MetaRectangle old_outer, new_outer; int proposed_outer_width, proposed_outer_height; - gboolean is_resize; meta_window_get_frame_rect (window, &old_outer); proposed_outer_width = *new_width; @@ -1279,7 +1278,6 @@ meta_window_edge_resistance_for_resize (MetaWindow *window, proposed_outer_height); window->display->grab_last_user_action_was_snap = snap; - is_resize = TRUE; if (apply_edge_resistance_to_each_side (window->display, window, &old_outer, @@ -1287,7 +1285,7 @@ meta_window_edge_resistance_for_resize (MetaWindow *window, timeout_func, snap, is_keyboard_op, - is_resize)) + TRUE)) { *new_width = new_outer.width; *new_height = new_outer.height;