diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-17 08:50:14 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-17 09:45:11 +0200 |
commit | cfb2e997871bc445c30f22485b170b85db486dd2 (patch) | |
tree | db741d13c52c90b5d4586ccbc47eb613fc592a07 /codegen/valaccodemethodmodule.vala | |
parent | 98d7546d227b5a67f4b1ecb0e0be560a2a397b94 (diff) | |
download | vala-cfb2e997871bc445c30f22485b170b85db486dd2.tar.gz |
codegen: Drop unreachable and misplaced code
Dropped with 8aa6299ea7a39e7a652ce3896324aaa47af99a18 and falsely
reintroduced with 7a429688cdf0fd16cc1503a7666681792e309da8
Diffstat (limited to 'codegen/valaccodemethodmodule.vala')
-rw-r--r-- | codegen/valaccodemethodmodule.vala | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index 6c21ecadd..0cb669125 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -768,23 +768,6 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule { creturn_type = new VoidType (); } - - if (current_type_symbol is Class && gobject_type != null && current_class.is_subtype_of (gobject_type) - && current_class.has_type_parameters () - && !((CreationMethod) m).chain_up) { - var ccond = new CCodeBinaryExpression (CCodeBinaryOperator.GREATER_THAN, new CCodeIdentifier ("__params_it"), new CCodeIdentifier ("__params")); - ccode.open_while (ccond); - ccode.add_expression (new CCodeUnaryExpression (CCodeUnaryOperator.PREFIX_DECREMENT, new CCodeIdentifier ("__params_it"))); - var cunsetcall = new CCodeFunctionCall (new CCodeIdentifier ("g_value_unset")); - cunsetcall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeMemberAccess.pointer (new CCodeIdentifier ("__params_it"), "value"))); - ccode.add_expression (cunsetcall); - ccode.close (); - - var cfreeparams = new CCodeFunctionCall (new CCodeIdentifier ("g_free")); - cfreeparams.add_argument (new CCodeIdentifier ("__params")); - ccode.add_expression (cfreeparams); - } - if (current_type_symbol is Class && !m.coroutine) { CCodeExpression cresult = new CCodeIdentifier ("self"); if (get_ccode_type (m) != null) { |