From 83a915dc851f7d3385e0d38f57cc249e038dcd1d Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Feb 2019 12:56:19 +0100 Subject: Improve performance by removing unused assignments --- src/core/edge-resistance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/edge-resistance.c') diff --git a/src/core/edge-resistance.c b/src/core/edge-resistance.c index aa4fcb6a..8a0d1854 100644 --- a/src/core/edge-resistance.c +++ b/src/core/edge-resistance.c @@ -285,7 +285,6 @@ find_nearest_position (const GArray *edges, if (dist < best_dist) { best = compare; - best_dist = dist; } break; } @@ -461,7 +460,6 @@ apply_edge_resistance (MetaWindow *window, */ /* First, determine the threshold */ - threshold = 0; switch (edge->edge_type) { case META_EDGE_WINDOW: @@ -482,6 +480,8 @@ apply_edge_resistance (MetaWindow *window, else threshold = PIXEL_DISTANCE_THRESHOLD_AWAYFROM_SCREEN; break; + default: + threshold = 0; } if (ABS (compare - new_pos) < threshold) -- cgit v1.2.1