summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-04 14:05:57 +0000
committerTom Hacohen <tom@stosb.com>2016-03-04 14:09:34 +0000
commitd2f799e4cb9a31d645fb95ff0b7de95a9b0f9900 (patch)
tree72236d83103fecce315e84a1a5d4a0d13b605edc /src
parentd72b336f6963afebbfbd75905a0083a250ad1c53 (diff)
Eo: Remove useless safety checks.
Those can never happen, ever.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo.c7
1 files changed, 1 insertions, 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)
747 747
748 EO_OBJ_POINTER_RETURN_VAL(eo_id, obj, NULL); 748 EO_OBJ_POINTER_RETURN_VAL(eo_id, obj, NULL);
749 749
750 if (obj->klass) 750 return _eo_class_id_get(obj->klass);
751 return _eo_class_id_get(obj->klass);
752 return NULL;
753} 751}
754 752
755EAPI const char * 753EAPI const char *
@@ -908,9 +906,6 @@ _eo_class_mro_init(const Eo_Class_Description *desc, const _Eo_Class *parent, Ei
908static void 906static void
909_eo_class_constructor(_Eo_Class *klass) 907_eo_class_constructor(_Eo_Class *klass)
910{ 908{
911 if (klass->constructed)
912 return;
913
914 klass->constructed = EINA_TRUE; 909 klass->constructed = EINA_TRUE;
915 910
916 if (klass->desc->class_constructor) 911 if (klass->desc->class_constructor)