eo2: remove dead code
authorJérémy Zurcher <jeremy@asynk.ch>
Fri, 27 Dec 2013 22:07:22 +0000 (23:07 +0100)
committerTom Hacohen <tom@stosb.com>
Thu, 10 Apr 2014 03:20:20 +0000 (04:20 +0100)
src/lib/eo/eo.c
src/lib/eo/eo_private.h

index f387c36..7d8d77d 100644 (file)
@@ -1591,9 +1591,6 @@ eo_add_internal(const char *file, int line, const Eo_Class *klass_id, Eo *parent
    _eo_parent_internal_set(obj, parent_id);
 
    /* Run the relevant do stuff. */
-   if (klass->desc->version == EO2_VERSION)
-     eo2_do((Eo *)obj_id, eo2_constructor());
-   /* Run the relevant do stuff. */
      {
         va_list p_list;
         va_start(p_list, parent_id);
index 96d14aa..b398ff0 100644 (file)
@@ -60,7 +60,6 @@ typedef uintptr_t Eo_Id;
 typedef struct _Eo_Class _Eo_Class;
 typedef struct _Eo_Object _Eo_Object;
 typedef struct _Eo_Base Eo_Base;
-typedef struct _Eo_Internal _Eo;
 
 /* Retrieves the pointer to the object from the id */
 static inline _Eo_Object *_eo_obj_pointer_get(const Eo_Id obj_id);