Eobj: removed unneeded field.

SVN revision: 70005
This commit is contained in:
Tom Hacohen 2012-04-11 07:05:27 +00:00
parent dadb753a15
commit e1d070a9db
1 changed files with 0 additions and 20 deletions

View File

@ -108,7 +108,6 @@ typedef struct
{
EINA_INLIST;
const Eobj_Class *klass;
Eina_Bool exists : 1; /* < True if already exists in class (incl parents). */
} Eobj_Extension_Node;
struct _Eobj_Class
@ -497,24 +496,6 @@ eobj_class_funcs_set(Eobj_Class *klass, const Eobj_Op_Func_Description *func_des
}
}
static Eina_Bool
_eobj_class_extn_exists(const Eobj_Class *klass, const Eobj_Class *extn_cls)
{
while (klass)
{
Eobj_Extension_Node *extn;
EINA_INLIST_FOREACH(klass->extensions, extn)
{
if (extn->klass == extn_cls)
return EINA_TRUE;
}
klass = klass->parent;
}
return EINA_FALSE;
}
EAPI Eobj_Class *
eobj_class_new(const Eobj_Class_Description *desc, const Eobj_Class *parent, ...)
{
@ -566,7 +547,6 @@ eobj_class_new(const Eobj_Class_Description *desc, const Eobj_Class *parent, ...
{
Eobj_Extension_Node *node = calloc(1, sizeof(*node));
node->klass = extn;
node->exists = _eobj_class_extn_exists(klass, extn);
klass->extensions =
eina_inlist_append(klass->extensions,
EINA_INLIST_GET(node));