From 466b1bed4303d6469f2cc98b2513ed8caae237df Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Tue, 29 Aug 2023 17:42:24 +0900 Subject: [PATCH] e_pixmap: Remove dead code Change-Id: I6fe538c417e24caa8230237752e26a20d5c8d95e --- src/bin/e_pixmap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 0627ea7..1537230 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -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); } // -------------------------------------------------------- -- 2.7.4