From: Jürg Billeter Date: Tue, 31 Mar 2009 15:51:45 +0000 (+0200) Subject: Drop redundant struct declaration call X-Git-Tag: 0.7.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea06b956cbfb2d5d7ae430cc78cbf3579695016;p=thirdparty%2Fvala.git Drop redundant struct declaration call --- diff --git a/gobject/valaccodemethodmodule.vala b/gobject/valaccodemethodmodule.vala index ef06d37f4..2a2fd306f 100644 --- a/gobject/valaccodemethodmodule.vala +++ b/gobject/valaccodemethodmodule.vala @@ -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;