[vala/staging: 3/4] codegen: Remove unused create_local()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 3/4] codegen: Remove unused create_local()
- Date: Thu, 10 Nov 2016 09:51:50 +0000 (UTC)
commit bb38f5bc559b7b1aec5b776d2e6fe3e1581d3d14
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Nov 10 10:29:10 2016 +0100
codegen: Remove unused create_local()
codegen/valaccodebasemodule.vala | 6 ------
vala/valacodegenerator.vala | 2 --
2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 764b4d1..5e26c55 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2564,12 +2564,6 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
}
}
- public override LocalVariable create_local (DataType type) {
- var result = get_temp_variable (type, type.value_owned);
- emit_temp_var (result);
- return result;
- }
-
public LocalVariable get_temp_variable (DataType type, bool value_owned = true, CodeNode?
node_reference = null, bool init = false) {
var var_type = type.copy ();
var_type.value_owned = value_owned;
diff --git a/vala/valacodegenerator.vala b/vala/valacodegenerator.vala
index fc0ea9e..9887a49 100644
--- a/vala/valacodegenerator.vala
+++ b/vala/valacodegenerator.vala
@@ -32,8 +32,6 @@ public abstract class Vala.CodeGenerator : CodeVisitor {
public virtual void emit (CodeContext context) {
}
- public abstract LocalVariable create_local (DataType type);
-
public abstract TargetValue load_local (LocalVariable local);
public abstract void store_local (LocalVariable local, TargetValue value, bool initializer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]