[NUI] Reduce code duplication - refactor dispose codes (#1010)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / ObjectRegistry.cs
index bf0c9a7..47aa6ef 100755 (executable)
  * limitations under the License.
  *
  */
+using System;
+using System.Runtime.InteropServices;
 
 namespace Tizen.NUI
 {
-
-    using System;
-    using System.Runtime.InteropServices;
-
-
     internal class ObjectRegistry : BaseHandle
     {
         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
@@ -43,14 +40,6 @@ 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.
-
-            }
-
             //Release your own unmanaged resources here.
             //You should not access any managed member here except static instance.
             //because the execution order of Finalizes is non-deterministic.
@@ -68,7 +57,6 @@ namespace Tizen.NUI
             base.Dispose(type);
         }
 
-
         /// <since_tizen> 3 </since_tizen>
         public class ObjectCreatedEventArgs : EventArgs
         {
@@ -107,7 +95,6 @@ namespace Tizen.NUI
             }
         }
 
-
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
         private delegate void ObjectCreatedEventCallbackDelegate(IntPtr baseHandle);
         private DaliEventHandler<object, ObjectCreatedEventArgs> _objectRegistryObjectCreatedEventHandler;
@@ -241,7 +228,5 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
-
     }
-
 }