interface_scrollable: Remove redundant code block 37/116637/2
authorWonki Kim <wonki_.kim@samsung.com>
Mon, 27 Feb 2017 10:27:08 +0000 (19:27 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 27 Feb 2017 11:44:20 +0000 (20:44 +0900)
wanted-updates logics is paired working with wanted-set logic.
but there are coordinates mirroring logics on the both side.
It is useless to reverse value which is reversed.

@tizen_fix

Change-Id: I4ab0f474e66c7cff132857561e3ddef0b4f075cc
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
src/lib/elm_interface_scrollable.c

index dc39b02701aa05df2e2c29452e15d3ed240ad114..f42f2d36398fb5b0e46ce7d25dd065ef0a429fad 100644 (file)
@@ -1419,8 +1419,6 @@ _elm_scroll_wanted_coordinates_update(Elm_Scrollable_Smart_Interface_Data *sid,
         if (!sid->loop_h) sid->wx = minx;
         else sid->wx = mx;
      }
-   else if (sid->is_mirrored)
-     sid->wx = _elm_scroll_x_mirrored_get(sid->obj, x);
    else if (!sid->loop_h && (x > mx)) sid->wx = mx;
    else if (sid->loop_h && x >= (sid->ww + mx)) sid->wx = 0;
    else sid->wx = x;
@@ -2087,10 +2085,6 @@ _elm_interface_scrollable_wanted_region_set(Eo *obj, Elm_Scrollable_Smart_Interf
 
    sid->content_info.resized = EINA_FALSE;
 
-   /* Flip to RTL cords only if init in RTL mode */
-   if (sid->is_mirrored)
-     wx = _elm_scroll_x_mirrored_get(obj, sid->wx);
-
    if (sid->ww == -1)
      {
         eo_do(obj, elm_interface_scrollable_content_viewport_geometry_get