rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=4d95a3fc4e324f6cee868d5fb884f83ebb63546e

commit 4d95a3fc4e324f6cee868d5fb884f83ebb63546e
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Mon Jul 25 11:40:03 2016 +0300

    widget_list: remove unused funcs
    
    Change-Id: Ief6e374966a90e6b84cb4b3063e074a674398fa5
---
 src/bin/common/widget_list.c | 112 -------------------------------------------
 src/bin/common/widget_list.h |   3 --
 2 files changed, 115 deletions(-)

diff --git a/src/bin/common/widget_list.c b/src/bin/common/widget_list.c
index 15de59f..95e3ed6 100644
--- a/src/bin/common/widget_list.c
+++ b/src/bin/common/widget_list.c
@@ -133,116 +133,6 @@ style_name_get(const Eina_Stringshare *group_name)
    return strdup(style);
 }
 
-Eina_Bool
-style_name_check(const Eina_Stringshare *group_name, const char *style_name)
-{
-   const char *style = style_name_get(group_name);
-
-   if (!style) return EINA_FALSE;
-
-   return !strcmp(style_name, style);
-}
-
-char* _strrstr(char* str, const char* ptn)
-{
-   unsigned int ptnlen = 0;
-   unsigned int i = 0, j = 0;
-
-   ptnlen = strlen(ptn) - 1;
-
-   for (i = strlen(str) - 1; i != 0; i--)
-     {
-        if (str[i] == ptn[ptnlen])
-          {
-             if (ptnlen == 0)
-               {
-                  return &str[i];
-               }
-             for (j = 1; (j < strlen(ptn)) & (i > j); j++)
-               {
-                  if (str[i - j] != ptn[ptnlen - j])
-                    {
-                       break;
-                    }
-                  if (j + 1 == strlen(ptn))
-                    {
-                       return &str[i - j];
-                    }
-               }
-          }
-     }
-
-   return NULL;
-}
-
-const char *
-item_style_name_get(const Eina_Stringshare *group_name, Eina_List *style_list)
-{
-   int len = strlen(group_name);
-   int first, i;
-   Eina_List *l;
-   Tree_Item_Data *style_item;
-   char widget[32], class[32], style[256];
-
-   if (group_name[0] != 'e') return NULL;
-   if (group_name[1] != 'l') return NULL;
-   if (group_name[2] != 'm') return NULL;
-   if (group_name[3] != '/') return NULL;
-
-   for (i = 4; i < len; i++)
-     {
-        if (group_name[i] == '/') break;
-     }
-
-   first = 4;
-   for (i = first; i < len; i++)
-     {
-        if (group_name[i] == '/') break;
-        widget[i - first] = group_name[i];
-     }
-   widget[i - first] = '\0';
-
-   first = i + 1;
-   for (i = first; i < len; i++)
-     {
-        if (group_name[i] == '/') break;
-        class[i - first] = group_name[i];
-     }
-   class[i - first] = '\0';
-
-   if (!strcmp(widget, "genlist") && !strcmp(class, "base")) return NULL;
-
-   first = i + 1;
-   for (i = first; i < len; i++)
-     {
-        style[i - first] = group_name[i];
-     }
-   style[i - first] = '\0';
-
-   EINA_LIST_FOREACH(style_list, l, style_item)
-     {
-        char *str;
-
-        str = _strrstr(style, style_item->name);
-        if (str)
-          {
-             style[strlen(style) - strlen(str) - 1] = '\0';
-          }
-     }
-
-   return strdup(style);
-}
-
-Eina_Bool
-item_style_name_check(const Eina_Stringshare *group_name, const char 
*style_name, Eina_List *style_list)
-{
-   const char *style = item_style_name_get(group_name, style_list);
-
-   if (!style) return EINA_FALSE;
-
-   return !strcmp(style_name, style);
-}
-
 const char *
 option_widget_name_get(const char *str, Eina_List **style_list)
 {
@@ -468,5 +358,3 @@ widget_tree_items_get(Eina_List *groups,
         eina_stringshare_del(group_prefix);
      }
 }
-
-
diff --git a/src/bin/common/widget_list.h b/src/bin/common/widget_list.h
index 9b3fc86..b04dc5d 100644
--- a/src/bin/common/widget_list.h
+++ b/src/bin/common/widget_list.h
@@ -38,9 +38,6 @@ typedef struct _End_Item_Data End_Item_Data;
 
 const char *widget_name_get(const Eina_Stringshare *group_name);
 const char *style_name_get(const Eina_Stringshare *group_name);
-const char *item_style_name_get(const Eina_Stringshare *group_name, Eina_List 
*style_list);
-Eina_Bool style_name_check(const Eina_Stringshare *group_name, const char 
*style_name);
-Eina_Bool item_style_name_check(const Eina_Stringshare *group_name, const char 
*style_name, Eina_List *style_list);
 const char *option_widget_name_get(const char *str, Eina_List **style_list);
 const char *option_style_name_get(const char *str, Eina_List **cp_style_list);
 Eina_List *widget_prefix_list_get(Eina_List *collections, const char 
*widget_name, const char *style_name);

-- 


Reply via email to