[vala] Drop LocalVariable.floating usage, replaced by create_temp_access
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Drop LocalVariable.floating usage, replaced by create_temp_access
- Date: Sun, 26 Jan 2014 16:29:01 +0000 (UTC)
commit 3f68a952ca96fb80ce5ef071e6a5788c8cac068f
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Jan 26 15:50:13 2014 +0100
Drop LocalVariable.floating usage, replaced by create_temp_access
codegen/valaccodebasemodule.vala | 4 ++--
vala/valalocalvariable.vala | 5 -----
2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index a48df49..a359e39 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -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));
}
}
diff --git a/vala/valalocalvariable.vala b/vala/valalocalvariable.vala
index 9f4ff59..17732ad 100644
--- a/vala/valalocalvariable.vala
+++ b/vala/valalocalvariable.vala
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]