edje_cc: remove unnecessary internal function
authorJee-Yong Um <jc9.um@samsung.com>
Tue, 15 Mar 2016 18:31:30 +0000 (11:31 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Tue, 15 Mar 2016 18:31:33 +0000 (11:31 -0700)
Summary:
This internal function was made for checking non-existence of
Edje Part when handling insert_before/after attributes.
However, checking is implemented in different way and this function
is not used anywhere.

Reviewers: cedric

Subscribers: jpeg

Differential Revision: https://phab.enlightenment.org/D3790

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
src/bin/edje/edje_cc_out.c

index 534c695..3a063ba 100644 (file)
@@ -4123,32 +4123,6 @@ using_file(const char *filename, const char type)
      }
 }
 
-Eina_Bool
-needed_part_exists(Edje_Part_Collection *pc, const char *name)
-{
-   Eina_Bool found;
-   unsigned int i;
-
-   found = EINA_FALSE;
-
-   for (i = 0; i < pc->parts_count; i++)
-     {
-        if (!strcmp(pc->parts[i]->name, name))
-          {
-             found = EINA_TRUE;
-             break;
-          }
-     }
-
-   if (!found)
-     {
-        ERR("Unable to find part name \"%s\" needed in group \"%s\".",
-            name, pc->part);
-        exit(-1);
-     }
-   return found;
-}
-
 void
 color_tree_root_free(void)
 {