summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 15:25:13 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 15:43:47 +0100
commit1a76690abfbe5c709695ff84aa90b51242f4e469 (patch)
treeb3469526d6cb433d44f76743b4e535f01cb61f4f /src/bin/eolian
parent7e95079f0fb8affae694d2855c01fbaec35e0806 (diff)
eolian/generator: remove support for custom constructors
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/eo_generator.c18
-rw-r--r--src/bin/eolian/impl_generator.c17
2 files changed, 1 insertions, 34 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index ce498fa519..f3ee216d2b 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -225,7 +225,7 @@ eo_fundef_generate(const Eolian_Class *class, Eolian_Function *func, Eolian_Func
225Eina_Bool 225Eina_Bool
226eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf) 226eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf)
227{ 227{
228 const Eolian_Function_Type ftype_order[] = {EOLIAN_CTOR, EOLIAN_PROPERTY, EOLIAN_METHOD}; 228 const Eolian_Function_Type ftype_order[] = {EOLIAN_PROPERTY, EOLIAN_METHOD};
229 Eina_Iterator *itr; 229 Eina_Iterator *itr;
230 Eolian_Event *event; 230 Eolian_Event *event;
231 Eolian_Function *fid; 231 Eolian_Function *fid;
@@ -710,22 +710,6 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
710 } 710 }
711 eina_iterator_free(itr); 711 eina_iterator_free(itr);
712 712
713 //Constructors
714 itr = eolian_class_functions_get(class, EOLIAN_CTOR);
715 EINA_ITERATOR_FOREACH(itr, fn)
716 {
717 if (eolian_function_is_legacy_only(fn, EOLIAN_CTOR))
718 continue;
719
720 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_METHOD));
721 eo_op_desc_generate(class, fn, EOLIAN_CTOR, desc, tmpbuf);
722 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf));
723 free(desc);
724
725 eo_bind_func_generate(class, fn, EOLIAN_UNRESOLVED, str_bodyf, NULL);
726 }
727 eina_iterator_free(itr);
728
729 //Properties 713 //Properties
730 itr = eolian_class_functions_get(class, EOLIAN_PROPERTY); 714 itr = eolian_class_functions_get(class, EOLIAN_PROPERTY);
731 EINA_ITERATOR_FOREACH(itr, fn) 715 EINA_ITERATOR_FOREACH(itr, fn)
diff --git a/src/bin/eolian/impl_generator.c b/src/bin/eolian/impl_generator.c
index 069797e443..e0241990d6 100644
--- a/src/bin/eolian/impl_generator.c
+++ b/src/bin/eolian/impl_generator.c
@@ -162,15 +162,6 @@ _prototype_generate(const Eolian_Function *foo, Eolian_Function_Type ftype, Eina
162 if (eina_strbuf_length_get(params)) 162 if (eina_strbuf_length_get(params))
163 eina_strbuf_prepend_printf(params, ", "); 163 eina_strbuf_prepend_printf(params, ", ");
164 164
165 if (impl_desc && ftype == EOLIAN_CTOR)
166 {
167 eina_strbuf_append_printf(super_invok,
168 " eo_do_super(obj, %s_%s, %s_%s(%s));\n",
169 class_env.upper_eo_prefix, class_env.upper_classtype,
170 impl_env.lower_eo_prefix, eolian_function_name_get(foo),
171 eina_strbuf_string_get(short_params));
172 }
173
174 fname = eolian_function_name_get(foo); 165 fname = eolian_function_name_get(foo);
175 if (fname) 166 if (fname)
176 { 167 {
@@ -281,14 +272,6 @@ impl_source_generate(const Eolian_Class *class, Eina_Strbuf *buffer)
281 } 272 }
282 eina_iterator_free(itr); 273 eina_iterator_free(itr);
283 274
284 /* Custom constructors */
285 itr = eolian_class_functions_get(class, EOLIAN_CTOR);
286 EINA_ITERATOR_FOREACH(itr, foo)
287 {
288 _prototype_generate(foo, EOLIAN_CTOR, data_type_buf, NULL, buffer);
289 }
290 eina_iterator_free(itr);
291
292 itr = eolian_class_implements_get(class); 275 itr = eolian_class_implements_get(class);
293 if (itr) 276 if (itr)
294 { 277 {