summaryrefslogtreecommitdiff
path: root/legacy/eobj
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-06-11 07:41:11 +0000
committerTom Hacohen <tom@stosb.com>2012-06-11 07:41:11 +0000
commitc019546d92cea528487375aaeb739e7f29f81f0e (patch)
tree44229fb6bd2936e82f8f7522f32d5b3f18b109f7 /legacy/eobj
parentdf3343d002b34ef04a63895e33cc1f9415c96414 (diff)
Eo: Actually, no reason why to force inheritance from base class.
You'll be using functionality if you don't but you still don't have to. It's not perfect though, I still need to make it possible in other places. SVN revision: 71934
Diffstat (limited to 'legacy/eobj')
-rw-r--r--legacy/eobj/src/lib/eo.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/legacy/eobj/src/lib/eo.c b/legacy/eobj/src/lib/eo.c
index 42f5f3d990..4f8d73863c 100644
--- a/legacy/eobj/src/lib/eo.c
+++ b/legacy/eobj/src/lib/eo.c
@@ -941,23 +941,6 @@ eo_class_new(const Eo_Class_Description *desc, Eo_Class_Id id, const Eo_Class *p
941 klass->data_offset = klass->parent->data_offset + 941 klass->data_offset = klass->parent->data_offset +
942 EO_ALIGN_SIZE(klass->parent->desc->data_size); 942 EO_ALIGN_SIZE(klass->parent->desc->data_size);
943 } 943 }
944 /* EO_BASE_CLASS is allowed not to have a parent. */
945 else if (id != EO_BASE_CLASS_ID)
946 {
947 /* No parent. */
948 switch (klass->desc->type)
949 {
950 case EO_CLASS_TYPE_REGULAR:
951 case EO_CLASS_TYPE_REGULAR_NO_INSTANT:
952 ERR("Regular classes ('%s') must inherit from EO_BASE_CLASS.", klass->desc->name);
953 goto cleanup;
954 break;
955 case EO_CLASS_TYPE_INTERFACE:
956 case EO_CLASS_TYPE_MIXIN:
957 /* Do nothing. */
958 break;
959 }
960 }
961 944
962 if (!_eo_class_check_op_descs(klass, id)) 945 if (!_eo_class_check_op_descs(klass, id))
963 { 946 {