From 2dc859aec5464e1122b52c788e5258b74691203a Mon Sep 17 00:00:00 2001 From: SungHyun Min Date: Fri, 16 Jun 2017 20:35:55 +0900 Subject: [PATCH] Fix TC issue - temporary solution Change-Id: I2135356a313e1fdb5faa1b6d979211e6307f7801 --- src/ElmSharp/ElmSharp/ItemObject.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) mode change 100644 => 100755 src/ElmSharp/ElmSharp/ItemObject.cs diff --git a/src/ElmSharp/ElmSharp/ItemObject.cs b/src/ElmSharp/ElmSharp/ItemObject.cs old mode 100644 new mode 100755 index 84a1b5e..e9edb74 --- a/src/ElmSharp/ElmSharp/ItemObject.cs +++ b/src/ElmSharp/ElmSharp/ItemObject.cs @@ -208,13 +208,8 @@ namespace ElmSharp internal static ItemObject GetItemByHandle(IntPtr handle) { - ItemObject value = null; + ItemObject value; s_HandleToItemTable.TryGetValue(handle, out value); - if (value == null) - { - int id = (int)Interop.Elementary.elm_object_item_data_get(handle); - return GetItemById(id); - } return value; } @@ -250,4 +245,4 @@ namespace ElmSharp return s_globalId++; } } -} +} \ No newline at end of file -- 2.7.4