diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2015-02-23 13:44:10 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2015-02-26 09:06:55 +0200 |
commit | 9e944d3070ba906b97795cd3a136b11d1ba9f948 (patch) | |
tree | 8bb6e887657b8ae7a602a08f57e24807c529e5b0 /src | |
parent | e508ce6a2b4b6c3b4d7b1890afa381856caff600 (diff) |
compositor: remove dead code from weston_output_move()
Also fixes a theoretical memory leak as the region was never fini'd.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compositor.c b/src/compositor.c index b1970cde..abc42e89 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3754,7 +3754,6 @@ weston_output_init_geometry(struct weston_output *output, int x, int y) WL_EXPORT void weston_output_move(struct weston_output *output, int x, int y) { - pixman_region32_t old_region; struct wl_resource *resource; output->move_x = x - output->x; @@ -3763,9 +3762,6 @@ weston_output_move(struct weston_output *output, int x, int y) if (output->move_x == 0 && output->move_y == 0) return; - pixman_region32_init(&old_region); - pixman_region32_copy(&old_region, &output->region); - weston_output_init_geometry(output, x, y); output->dirty = 1; |