Eo base: Fix eo_constructor's declaration.
authorTom Hacohen <tom@stosb.com>
Fri, 1 May 2015 14:47:35 +0000 (15:47 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 6 May 2015 14:46:18 +0000 (15:46 +0100)
Remove it from the constructors section.
This was wrong. This place is for functions that are allowed to be
passed to eo_add() and should be used by bindings to create
constructors.
This is wrong for both cases, as this should always be called, not
optional.

Also remove the redundant legacy: null.

src/lib/eo/eo_base.eo

index 2098c4a..88b917a 100644 (file)
@@ -47,7 +47,6 @@ Return event freeze count. */
       constructor {
          /*@ Call the object's constructor.
 Should not be used with #eo_do. Only use it with #eo_do_super. */
-         legacy: null;
       }
       event_callback_forwarder_del {
          /*@ Remove an event callback forwarder for an event and an object. */
@@ -220,9 +219,6 @@ callbacks of the same priority are called in reverse order of creation. */
         class.constructor;
         class.destructor;
    }
-   constructors {
-      .constructor;
-   }
    events {
       callback,add; /*@ A callback was added. */
       callback,del; /*@ A callback was deleted. */