From 354d82a65853b2960e8e5061497ded5bb4b3db7b Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 7 Jan 2014 00:09:44 +0900 Subject: [PATCH] flip, gengrid: Removed dead assignments which were reported by clang build. https://build.enlightenment.org/job/nightly_elm_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-05-1/report-cMar9x.html#EndPath https://build.enlightenment.org/job/nightly_elm_clang_x86_64/lastSuccessfulBuild/artifact/scan-build/build/2014-01-05-1/report-ZMmiQe.html#EndPath --- src/lib/elm_flip.c | 6 +----- src/lib/elm_gengrid.c | 3 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c index afc759d..ca04391 100644 --- a/src/lib/elm_flip.c +++ b/src/lib/elm_flip.c @@ -540,7 +540,7 @@ _state_update(Evas_Object *obj) Evas_Coord xx1, yy1, xx2, yy2, mx, my; Evas_Coord x, y, w, h, ox, oy, ow, oh; int gx, gy, gszw, gszh, gw, gh, col, row, nw, nh; - double rho, A, theta, perc, percm, n, rhol, Al, thetal; + double rho, A, theta, perc, n, rhol, Al, thetal; sd->backflip = EINA_TRUE; if (sd->state) @@ -627,13 +627,9 @@ _state_update(Evas_Object *obj) } perc = (double)xx2 / (double)xx1; - percm = (double)mx / (double)xx1; if (perc < 0.0) perc = 0.0; else if (perc > 1.0) perc = 1.0; - if (percm < 0.0) percm = 0.0; - else if (percm > 1.0) - percm = 1.0; minva = atan(minv) / (M_PI / 2); if (minva < 0.0) minva = -minva; diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 32cea99..56ede5d 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -989,9 +989,6 @@ _item_place(Elm_Gen_Item *it, cvw = vw + 2 * PRELOAD * wsd->item_width; cvh = vh + 2 * PRELOAD * wsd->item_height; - alignh = 0; - alignw = 0; - items_count = wsd->item_count - eina_list_count(wsd->group_items) + wsd->items_lost; if (wsd->horizontal) -- 2.7.4