Revert "[NUI] Fix Dispose warning error[CA1001] (#2130)"
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / KeyValue.cs
index a60e76f..c6c3029 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright(c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
  */
 
 using System;
-using System.ComponentModel;
 using Tizen.NUI.Binding;
 
 namespace Tizen.NUI
@@ -24,7 +23,7 @@ namespace Tizen.NUI
     /// <summary>
     /// KeyValue class.
     /// </summary>
-    public class KeyValue : Disposable
+    public class KeyValue
     {
         /// <summary>
         /// Int key.
@@ -51,15 +50,6 @@ namespace Tizen.NUI
         public KeyValue()
         { }
 
-        /// <summary>  
-        /// destructor. This is HiddenAPI. recommended not to use in public.   
-        /// </summary> 
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        ~KeyValue()
-        {
-            Dispose();
-        }
-
         /// <summary>
         /// Key property.
         /// </summary>
@@ -356,22 +346,5 @@ namespace Tizen.NUI
                 KeyString = Key;
             }
         }
-
-        /// <summary>
-        /// Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
-        /// </summary>
-        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        protected override void Dispose(DisposeTypes type)
-        {
-            if (disposed)
-            {
-                return;
-            }
-
-            TrueValue?.Dispose();
-
-            base.Dispose();
-        }
     }
 }