e_pixmap: Remove dead code 96/297996/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 29 Aug 2023 08:42:24 +0000 (17:42 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 30 Aug 2023 00:38:59 +0000 (09:38 +0900)
Change-Id: I6fe538c417e24caa8230237752e26a20d5c8d95e

src/bin/e_pixmap.c

index 0627ea7..1537230 100644 (file)
@@ -13,7 +13,6 @@
 static Eina_Hash *pixmaps[E_PIXMAP_TYPE_MAX] = {NULL};
 static Eina_Hash *res_ids = NULL;
 static uint32_t res_id = 0;
-static Eina_Hash *aliases[E_PIXMAP_TYPE_MAX] = {NULL};
 static uint32_t dummy_pixmap_id = 1; // dummy id starts from 1
 
 struct _E_Pixmap
@@ -187,14 +186,11 @@ static E_Pixmap *
 _e_pixmap_find(E_Pixmap_Type type, va_list *l)
 {
    uintptr_t id;
-   E_Pixmap *cp;
 
    if (!pixmaps[type]) return NULL;
 
    id = va_arg(*l, uintptr_t);
-   cp = eina_hash_find(aliases[type], &id);
-   if (!cp) cp = eina_hash_find(pixmaps[type], &id);
-   return cp;
+   return eina_hash_find(pixmaps[type], &id);
 }
 
 // --------------------------------------------------------