]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Drop LocalVariable.floating usage, replaced by create_temp_access
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 26 Jan 2014 14:50:13 +0000 (15:50 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 26 Jan 2014 14:50:13 +0000 (15:50 +0100)
codegen/valaccodebasemodule.vala
vala/valalocalvariable.vala

index a48df496240b0c065366c3a0250ede2b56f59c92..a359e39fb32b3e9296bedf53eb57cd91215745ae 100644 (file)
@@ -2150,7 +2150,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                for (int i = local_vars.size - 1; i >= 0; i--) {
                        var local = local_vars[i];
                        local.active = false;
-                       if (!local.unreachable && !local.floating && !local.captured && requires_destroy (local.variable_type)) {
+                       if (!local.unreachable && !local.captured && requires_destroy (local.variable_type)) {
                                ccode.add_expression (destroy_local (local));
                        }
                }
@@ -3463,7 +3463,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                // free in reverse order
                for (int i = local_vars.size - 1; i >= 0; i--) {
                        var local = local_vars[i];
-                       if (!local.unreachable && local.active && !local.floating && !local.captured && requires_destroy (local.variable_type)) {
+                       if (!local.unreachable && local.active && !local.captured && requires_destroy (local.variable_type)) {
                                ccode.add_expression (destroy_local (local));
                        }
                }
index 9f4ff592c28015d4b544f6331b29c5af52753f8e..17732ade9ef155600bf85bc04b16c209a2d81b93 100644 (file)
@@ -28,11 +28,6 @@ using GLib;
 public class Vala.LocalVariable : Variable {
        public bool is_result { get; set; }
 
-       /**
-        * Floating variables may only be accessed exactly once.
-        */
-       public bool floating { get; set; }
-
        public bool captured { get; set; }
 
        /* Currently ignored due to GCC 4.8 being strict on possibly uninitialized variables */