[NUI] Remove unused macro
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 2 Jul 2024 07:55:45 +0000 (16:55 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 10 Jul 2024 09:12:11 +0000 (18:12 +0900)
NUI_ANIMATION_PROPERTY_CHANGE_1 macro already works well for every cases.

Now we can always enable them

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/Animation/Animation.cs

index 560c13b..4993479 100755 (executable)
@@ -953,7 +953,6 @@ namespace Tizen.NUI
                 using (var time = new TimePeriod(startTime, endTime - startTime))
                     while (current != null)
                     {
-#if NUI_ANIMATION_PROPERTY_CHANGE_1
                         var targetValueIntPtr = current.RefineValueIntPtr(destinationValue);
                         if (targetValueIntPtr == global::System.IntPtr.Zero)
                         {
@@ -961,11 +960,6 @@ namespace Tizen.NUI
                         }
                         AnimateToIntPtr(current.Property, targetValueIntPtr, alphaFunction, time);
                         Interop.PropertyValue.DeletePropertyValueIntPtr(targetValueIntPtr);
-#else
-                        var targetValue = current.RefineValue(destinationValue) ?? throw new ArgumentException("Invalid " + nameof(destinationValue));
-                        AnimateTo(current.Property, targetValue, alphaFunction, time);
-                        targetValue.Dispose();
-#endif
                         current = current.NextResult;
                     }
             }