projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d72b336
)
Eo: Remove useless safety checks.
author
Tom Hacohen
<tom@stosb.com>
Fri, 4 Mar 2016 14:05:57 +0000
(14:05 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Fri, 4 Mar 2016 14:09:34 +0000
(14:09 +0000)
Those can never happen, ever.
src/lib/eo/eo.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo.c
b/src/lib/eo/eo.c
index
7408f41
..
cc0c978
100644
(file)
--- 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)