]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix critical when using postconditions
authorJürg Billeter <j@bitron.ch>
Thu, 14 Oct 2010 15:37:29 +0000 (17:37 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 14 Oct 2010 15:37:29 +0000 (17:37 +0200)
Fixes bug 631812.

codegen/valaccodemethodmodule.vala

index 484e2678599bce9a5576eff3813daf00b74cbe36..106b0aaf2a319c06847be754fe4b36773df12337 100644 (file)
@@ -296,10 +296,6 @@ public class Vala.CCodeMethodModule : CCodeStructModule {
                        param.accept (this);
                }
 
-               if (m.result_var != null) {
-                       m.result_var.accept (this);
-               }
-
                // do not declare overriding methods and interface implementations
                if (m.is_abstract || m.is_virtual
                    || (m.base_method == null && m.base_interface_method == null)) {