flip, gengrid: Removed dead assignments which were reported by clang
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 6 Jan 2014 15:09:44 +0000 (00:09 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 6 Jan 2014 15:11:00 +0000 (00:11 +0900)
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
src/lib/elm_gengrid.c

index afc759d..ca04391 100644 (file)
@@ -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;
index 32cea99..56ede5d 100644 (file)
@@ -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)