From 5bab9a8655346290f7ee0e4af972e3d085a6b818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 5 Jul 2013 16:54:07 +0200 Subject: [PATCH] actor: Minor cleanup In clutter_allocate_align_fill(), x2/y2 may be set twice for no particular reason; save a couple of lines by not doing this. https://bugzilla.gnome.org/show_bug.cgi?id=703809 --- clutter/clutter-actor.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index d0b19388e..ab36000fe 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -15398,16 +15398,10 @@ clutter_actor_allocate_align_fill (ClutterActor *self, x_align = 1.0 - x_align; if (!x_fill) - { - allocation.x1 += ((available_width - child_width) * x_align); - allocation.x2 = allocation.x1 + child_width; - } + allocation.x1 += ((available_width - child_width) * x_align); if (!y_fill) - { - allocation.y1 += ((available_height - child_height) * y_align); - allocation.y2 = allocation.y1 + child_height; - } + allocation.y1 += ((available_height - child_height) * y_align); out: