diff options
author | rbuj <[email protected]> | 2019-02-27 12:56:19 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-03-28 13:58:49 +0100 |
commit | 83a915dc851f7d3385e0d38f57cc249e038dcd1d (patch) | |
tree | 29883b0cecffbc1ffe94fc272669119ef164763a /src/core/edge-resistance.c | |
parent | 6f57d80bac06c6654f02652bcde562783a62d97f (diff) | |
download | marco-83a915dc851f7d3385e0d38f57cc249e038dcd1d.tar.bz2 marco-83a915dc851f7d3385e0d38f57cc249e038dcd1d.tar.xz |
Improve performance by removing unused assignments
Diffstat (limited to 'src/core/edge-resistance.c')
-rw-r--r-- | src/core/edge-resistance.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |