diff options
author | Tom Hacohen <tom@stosb.com> | 2016-03-04 14:05:57 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-03-04 14:09:34 +0000 |
commit | d2f799e4cb9a31d645fb95ff0b7de95a9b0f9900 (patch) | |
tree | 72236d83103fecce315e84a1a5d4a0d13b605edc | |
parent | d72b336f6963afebbfbd75905a0083a250ad1c53 (diff) | |
download | efl-d2f799e4cb9a31d645fb95ff0b7de95a9b0f9900.tar.gz |
Eo: Remove useless safety checks.
Those can never happen, ever.
-rw-r--r-- | src/lib/eo/eo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 7408f41641..cc0c9782f3 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) |