discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=ba3ffcf02992d8ffaad518ba5ec6918fdf56382f
commit ba3ffcf02992d8ffaad518ba5ec6918fdf56382f Author: Mike Blumenkrantz <[email protected]> Date: Fri Apr 4 14:02:02 2014 -0400 remove a bunch of unused e_util edje icon functions CID 1039948, 1039946 removals: e_util_*edje_icon_list* --- src/bin/e_utils.c | 93 ------------------------------------------------------- src/bin/e_utils.h | 3 -- 2 files changed, 96 deletions(-) diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c index 4f64ace..a23cfe6 100644 --- a/src/bin/e_utils.c +++ b/src/bin/e_utils.c @@ -219,99 +219,6 @@ e_util_immortal_check(void) } EAPI int -e_util_edje_icon_list_check(const char *list) -{ - char *buf; - const char *p; - const char *c; - - if ((!list) || (!list[0])) return 0; - buf = alloca(strlen(list) + 1); - p = list; - while (p) - { - c = strchr(p, ','); - if (c) - { - strncpy(buf, p, c - p); - buf[c - p] = 0; - if (e_util_edje_icon_check(buf)) return 1; - p = c + 1; - if (!*p) return 0; - } - else - { - strcpy(buf, p); - if (e_util_edje_icon_check(buf)) return 1; - return 0; - } - } - return 0; -} - -EAPI int -e_util_edje_icon_list_set(Evas_Object *obj, const char *list) -{ - char *buf; - const char *p; - const char *c; - - if ((!list) || (!list[0])) return 0; - buf = alloca(strlen(list) + 1); - p = list; - while (p) - { - c = strchr(p, ','); - if (c) - { - strncpy(buf, p, c - p); - buf[c - p] = 0; - if (e_util_edje_icon_set(obj, buf)) return 1; - p = c + 1; - if (!*p) break; - } - else - { - strcpy(buf, p); - if (e_util_edje_icon_set(obj, buf)) return 1; - break; - } - } - return 0; -} - -EAPI int -e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, const char *list) -{ - char *buf; - const char *p; - char *c; - - if ((!list) || (!list[0])) return 0; - buf = alloca(strlen(list) + 1); - p = list; - while (p) - { - c = strchr(p, ','); - if (c) - { - strncpy(buf, p, c - p); - buf[c - p] = 0; - if (e_util_menu_item_theme_icon_set(mi, buf)) return 1; - p = c + 1; - if (!*p) return 0; - } - else - { - strcpy(buf, p); - if (e_util_menu_item_theme_icon_set(mi, buf)) return 1; - return 0; - } - } - return 0; -} - -EAPI int e_util_edje_icon_check(const char *name) { const char *file; diff --git a/src/bin/e_utils.h b/src/bin/e_utils.h index be87c2c..79229a8 100644 --- a/src/bin/e_utils.h +++ b/src/bin/e_utils.h @@ -24,9 +24,6 @@ EAPI int e_util_strcasecmp(const char *s1, const char *s2); EAPI int e_util_strcmp(const char *s1, const char *s2); EAPI int e_util_both_str_empty(const char *s1, const char *s2); EAPI int e_util_immortal_check(void); -EAPI int e_util_edje_icon_list_check(const char *list); -EAPI int e_util_edje_icon_list_set(Evas_Object *obj, const char *list); -EAPI int e_util_menu_item_edje_icon_list_set(E_Menu_Item *mi, const char *list); EAPI int e_util_edje_icon_check(const char *name); EAPI int e_util_edje_icon_set(Evas_Object *obj, const char *name); EAPI int e_util_icon_theme_set(Evas_Object *obj, const char *icon); --
