[NUI] Registry is not required at GetTouchFromPtr()
authorjoogab.yun <joogab.yun@samsung.com>
Thu, 3 Aug 2023 04:12:42 +0000 (13:12 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 9 Aug 2023 07:58:31 +0000 (16:58 +0900)
In the case of an object created from DALi, it is created with new BaseHandle(intPtr, false).

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;
         }