diff options
Diffstat (limited to 'ElmSharp')
-rwxr-xr-x[-rw-r--r--] | ElmSharp/ElmSharp/ItemObject.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ElmSharp/ElmSharp/ItemObject.cs b/ElmSharp/ElmSharp/ItemObject.cs index 84a1b5e..e9edb74 100644..100755 --- a/ElmSharp/ElmSharp/ItemObject.cs +++ b/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 |