[NUI] Registry is not required at GetTouchFromPtr()
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Events / Touch.cs
index 27955ba..cc0111e 100755 (executable)
@@ -239,12 +239,7 @@ namespace Tizen.NUI
 
         internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr)
         {
-            Touch ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Touch;
-            if (ret == null)
-            {
-                ret = new Touch(cPtr, false);
-            }
-
+            Touch ret = new Touch(cPtr, false);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }