summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-15 23:56:59 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-15 23:59:14 +0900
commitc8c61d2e85932175af81382e95cea43bd4c76351 (patch)
tree82780be2ce896fd57a76510feed2a275ffa68fa4
parent408e15d78ce1d635e2b5779bcf57e95813195846 (diff)
downloadefl-c8c61d2e85932175af81382e95cea43bd4c76351.tar.gz
efl - ui box - remove unised deficit variable
-rw-r--r--src/lib/elementary/efl_ui_box_layout.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/elementary/efl_ui_box_layout.c b/src/lib/elementary/efl_ui_box_layout.c
index 4b0b329591..c526f43e26 100644
--- a/src/lib/elementary/efl_ui_box_layout.c
+++ b/src/lib/elementary/efl_ui_box_layout.c
@@ -30,7 +30,7 @@ _efl_ui_box_custom_layout(Efl_Ui_Box *ui_box, Evas_Object_Box_Data *bd)
Item_Calc *items, *item;
Eina_Bool horiz = _horiz(pd->orient), zeroweight = EINA_FALSE;
int id = 0, count, boxl = 0, boxr = 0, boxt = 0, boxb = 0;
- int length, want, deficit = 0, pad, extra = 0, rounding = 0;
+ int length, want, pad, extra = 0, rounding = 0;
double cur_pos = 0, weight[2] = { 0, 0 }, scale;
double box_align[2];
Eina_Bool box_fill[2] = { EINA_FALSE, EINA_FALSE };
@@ -157,12 +157,7 @@ _efl_ui_box_custom_layout(Efl_Ui_Box *ui_box, Evas_Object_Box_Data *bd)
wanth + pad * (count - 1) + boxt + boxb);
}
- if (extra < 0)
- {
- // note: deficit unused
- deficit = (-extra);
- extra = 0;
- }
+ if (extra < 0) extra = 0;
if (!weight[!horiz])
{