aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-10-15 18:38:32 +0100
committerTom Hacohen <tom@stosb.com>2015-10-19 10:22:41 +0100
commit23f0c0852ecde31b41ea5c63b79e87b439a68533 (patch)
treefd9c75029a13c1ccda574ac20b6d4d8a54cf118d
parentEo: Move op resolve check to where it belongs (out of hot path). (diff)
downloadefl-23f0c0852ecde31b41ea5c63b79e87b439a68533.tar.gz
Eo: Removed weird unneeded condition.
-rw-r--r--src/lib/eo/eo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 6af86d6232..89a50f65c9 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -873,11 +873,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;