Eo: Removed weird unneeded condition.

This commit is contained in:
Tom Hacohen 2015-10-15 18:38:32 +01:00
parent f28f6ecbfa
commit 3782931c50
1 changed files with 2 additions and 3 deletions

View File

@ -922,11 +922,10 @@ _eo_add_internal_end(Eo *eo_id, Eo_Call_Stack *stack)
}
{
const _Eo_Class *klass = (fptr->cur_klass) ?
fptr->cur_klass : fptr->o.obj->klass;
if (!fptr->o.obj->condtor_done)
{
const _Eo_Class *klass = fptr->o.obj->klass;
ERR("Object of class '%s' - Not all of the object constructors have been executed.",
klass->desc->name);
goto cleanup;