]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Drop redundant struct declaration call
authorJürg Billeter <j@bitron.ch>
Tue, 31 Mar 2009 15:51:45 +0000 (17:51 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 31 Mar 2009 15:51:45 +0000 (17:51 +0200)
gobject/valaccodemethodmodule.vala

index ef06d37f449ee31700317b3b316a32a3a440d9f9..2a2fd306fe9e2e38a31abf27440d37218d6e114e 100644 (file)
@@ -627,7 +627,6 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
                        // pass non-simple structs always by reference
                        if (param.parameter_type.data_type is Struct) {
                                var st = (Struct) param.parameter_type.data_type;
-                               generate_struct_declaration (st, decl_space);
                                if (!st.is_simple_type () && param.direction == ParameterDirection.IN) {
                                        if (st.use_const) {
                                                ctypename = "const " + ctypename;