From d2f799e4cb9a31d645fb95ff0b7de95a9b0f9900 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 4 Mar 2016 14:05:57 +0000 Subject: [PATCH] Eo: Remove useless safety checks. Those can never happen, ever. --- src/lib/eo/eo.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 7408f41..cc0c978 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -747,9 +747,7 @@ eo_class_get(const Eo *eo_id) EO_OBJ_POINTER_RETURN_VAL(eo_id, obj, NULL); - if (obj->klass) - return _eo_class_id_get(obj->klass); - return NULL; + return _eo_class_id_get(obj->klass); } EAPI const char * @@ -908,9 +906,6 @@ _eo_class_mro_init(const Eo_Class_Description *desc, const _Eo_Class *parent, Ei static void _eo_class_constructor(_Eo_Class *klass) { - if (klass->constructed) - return; - klass->constructed = EINA_TRUE; if (klass->desc->class_constructor) -- 2.7.4