Revert "[Tizen] generate exception when garbage collected during animation playing" 05/141705/1
authorminho.sun <minho.sun@samsung.com>
Tue, 1 Aug 2017 01:19:55 +0000 (10:19 +0900)
committerminho.sun <minho.sun@samsung.com>
Tue, 1 Aug 2017 01:19:57 +0000 (10:19 +0900)
This reverts commit e4603e6ea7d8f463b877fa0255e207c62d29492d.

Change-Id: I705a6ba09e93f62110af5e9356189aea114f51b7

Tizen.NUI/src/public/Animation.cs

index 83b129f..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.