[vala] GType: Remove duplicated code for interface vfunc declarators
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GType: Remove duplicated code for interface vfunc declarators
- Date: Sun, 13 Sep 2009 15:29:55 +0000 (UTC)
commit b41c8b8f76740acfb72c20d034000cae7b6f0c54
Author: Jürg Billeter <j bitron ch>
Date: Sun Sep 13 15:15:12 2009 +0200
GType: Remove duplicated code for interface vfunc declarators
codegen/valagtypemodule.vala | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 6b7f3ec..df8c99a 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1695,19 +1695,7 @@ internal class Vala.GTypeModule : GErrorModule {
type_struct.add_field ("GTypeInterface", "parent_iface");
foreach (Method m in iface.get_methods ()) {
- if ((!m.is_abstract && !m.is_virtual) || m.coroutine) {
- continue;
- }
-
- // add vfunc field to the type struct
- var vdeclarator = new CCodeFunctionDeclarator (m.vfunc_name);
- var cparam_map = new HashMap<int,CCodeFormalParameter> (direct_hash, direct_equal);
-
- generate_cparameters (m, decl_space, cparam_map, new CCodeFunction ("fake"), vdeclarator);
-
- var vdecl = new CCodeDeclaration (m.return_type.get_cname ());
- vdecl.add_declarator (vdeclarator);
- type_struct.add_declaration (vdecl);
+ generate_virtual_method_declaration (m, decl_space, type_struct);
}
foreach (Property prop in iface.get_properties ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]