elementary/flip - patched by PRINCE KUMAR DUBEY <prince.dubey@samsung.com>
authorChunEon Park <hermet@hermet.pe.kr>
Tue, 29 Nov 2011 00:09:56 +0000 (00:09 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Tue, 29 Nov 2011 00:09:56 +0000 (00:09 +0000)
Hi,

On behalf of Rajeev Ranjan, I am submitting the elm_flip patch.

Change Log:
a. Removed unnecessary comparison and assignment from the function _state_update inside file src/bin/test_flip_page.c. The comparison test will always be failed. Hence the assignment which was unreachable is removed.
b. Removed unnecessary comparison and assignment from the function _state_update inside file src/lib/elm_flip.c. The comparison test will always be failed. Hence the assignment which was unreachable is removed.

Please review it.
I'd appreciate any comments on this.

Thank you,

SVN revision: 65664

src/bin/test_flip_page.c
src/lib/elm_flip.c

index 5537ea1..e823f64 100644 (file)
@@ -446,8 +446,6 @@ _state_update(State *st)
 
    nw = 16;
    nh = 16;
-   if (nw < 1) nw = 1;
-   if (nh < 1) nh = 1;
    gszw = w / nw;
    gszh = h / nh;
    if (gszw < 4) gszw = 4;
index 3997f0d..d0cd137 100644 (file)
@@ -550,8 +550,6 @@ _state_update(Widget_Data *st)
 
    nw = 16;
    nh = 16;
-   if (nw < 1) nw = 1;
-   if (nh < 1) nh = 1;
    gszw = w / nw;
    gszh = h / nh;
    if (gszw < 4) gszw = 4;