From d1fac92dc8ee42eeb4840f0f91dc0b68ab0a698a Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Tue, 29 Nov 2011 00:09:56 +0000 Subject: [PATCH] elementary/flip - patched by PRINCE KUMAR DUBEY 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 --- legacy/elementary/src/bin/test_flip_page.c | 2 -- legacy/elementary/src/lib/elm_flip.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/legacy/elementary/src/bin/test_flip_page.c b/legacy/elementary/src/bin/test_flip_page.c index 5537ea1150..e823f64e0f 100644 --- a/legacy/elementary/src/bin/test_flip_page.c +++ b/legacy/elementary/src/bin/test_flip_page.c @@ -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; diff --git a/legacy/elementary/src/lib/elm_flip.c b/legacy/elementary/src/lib/elm_flip.c index 3997f0dc34..d0cd137085 100644 --- a/legacy/elementary/src/lib/elm_flip.c +++ b/legacy/elementary/src/lib/elm_flip.c @@ -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;