Revert "[Tizen] generate exception when garbage collected during animation playing"
authordongsug.song <dongsug.song@samsung.com>
Tue, 25 Jul 2017 01:37:42 +0000 (10:37 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 25 Jul 2017 01:37:44 +0000 (10:37 +0900)
This reverts commit 51260f0349f9811693c5b46758cbf9e0a1a340e9.

Change-Id: I89b249e990fe30e21f2154a8c4ff61258c699bd2

src/Tizen.NUI/src/public/Animation.cs

index 4f92f82..d999316 100755 (executable)
@@ -53,29 +53,12 @@ namespace Tizen.NUI
             {
                 return;
             }
+
             if(type == DisposeTypes.Explicit)
             {
                 //Called by User
                 //Release your own managed resources here.
                 //You should release all of your own disposable objects here.
-                NUILog.Debug("Animation.Dispose(Explicit)! GetState=" + this.GetState());
-                if(this.GetState() != States.Stopped)
-                {
-                    this.Clear();
-                    this.Reset();
-                    NUILog.Error("Now Animation is playing! Clear and Reset here!");
-                }
-            }
-            else if(type == DisposeTypes.Implicit)
-            {
-                NUILog.Debug("Animation.Dispose(Implicit)! GetState=" + this.GetState());
-                if(this.GetState() != States.Stopped)
-                {
-                    this.Clear();
-                    this.Reset();
-                    NUILog.Error("Now Animation is playing! Clear and Reset here!");
-                    throw new System.InvalidOperationException("Animation Instance should not be disposed until getting Finished event. Should be a global variable");
-                }
             }
 
             //Release your own unmanaged resources here.