[vala] codegen: Get rid of get_ref_cexpression



commit d1987732b3611b68ecaf1e8a5401d97799fe5545
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat May 7 11:42:49 2011 +0200

    codegen: Get rid of get_ref_cexpression

 codegen/valaccodebasemodule.vala |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 405a1f0..ce50a83 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3695,20 +3695,6 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
 		}
 	}
 
-	public CCodeExpression? get_ref_cexpression (DataType expression_type, CCodeExpression cexpr, Expression? expr, CodeNode node) {
-		var value = new GLibValue (expression_type, cexpr);
-		if (expr != null && expr.target_value != null) {
-			value.non_null = ((GLibValue) expr.target_value).non_null;
-			value.array_length_cvalues = ((GLibValue) expr.target_value).array_length_cvalues;
-			value.array_null_terminated = ((GLibValue) expr.target_value).array_null_terminated;
-			value.array_length_cexpr = ((GLibValue) expr.target_value).array_length_cexpr;
-			value.delegate_target_cvalue = get_delegate_target_cvalue (expr.target_value);
-			value.delegate_target_destroy_notify_cvalue = get_delegate_target_destroy_notify_cvalue (expr.target_value);
-		}
-		var result = copy_value (value, node);
-		return get_cvalue_ (result);
-	}
-
 	public virtual TargetValue? copy_value (TargetValue value, CodeNode node) {
 		var type = value.value_type;
 		var cexpr = get_cvalue_ (value);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]