Remove deprecated SetRemoveTime API 36/27536/2
authorPaul Wisbey <p.wisbey@samsung.com>
Mon, 15 Sep 2014 13:52:44 +0000 (14:52 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Mon, 15 Sep 2014 14:06:11 +0000 (15:06 +0100)
[problem]      Deprecated API is still being used
[cause]        ItemView legacy code
[solution]     Remove code

Change-Id: Ia1741882e1e42d5ca957370d9721f473104ce621

base/dali-toolkit/public-api/controls/scrollable/item-view/item-layout.cpp

index da7863c0477d0dee68fa33d0b46ac86f7db74638..32aeb7ac177937196e2aef7ef50c64040777c9ee 100644 (file)
@@ -20,7 +20,6 @@
 
 namespace
 {
-  const float DEFAULT_COLOR_VISIBILITY_REMOVE_TIME = 0.5f; // 0.5 second
 
   // Functors which wrap constraint functions with stored item IDs
   struct WrappedQuaternionConstraint
@@ -392,9 +391,6 @@ void ItemLayout::ApplyConstraints( Actor& actor, const int itemId, const float d
 
       constraint.SetApplyTime(durationSeconds);
       constraint.SetAlphaFunction(mAlphaFunction);
-
-      // Release color constraints slowly; this allows ItemView to co-exist with ImageActor fade-in
-      constraint.SetRemoveTime(DEFAULT_COLOR_VISIBILITY_REMOVE_TIME);
       constraint.SetRemoveAction(Dali::Constraint::Discard);
 
       actor.ApplyConstraint(constraint);
@@ -415,7 +411,6 @@ void ItemLayout::ApplyConstraints( Actor& actor, const int itemId, const float d
       constraint.SetAlphaFunction(mAlphaFunction);
 
       // Release visibility constraints the same time as the color constraint
-      constraint.SetRemoveTime(DEFAULT_COLOR_VISIBILITY_REMOVE_TIME);
       constraint.SetRemoveAction(Dali::Constraint::Discard);
 
       actor.ApplyConstraint(constraint);