[vala] codegen: Fix regression when getting type_id of data types



commit 085bce8e6ba542951b6bdcbeaa2715b1daf8059e
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Aug 6 14:36:04 2011 +0200

    codegen: Fix regression when getting type_id of data types

 codegen/valaccodebasemodule.vala |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index e1d0525..7b5c0ba 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -5634,13 +5634,6 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
 	}
 
 	public static string get_ccode_type_id (CodeNode node) {
-		if (node is DataType) {
-			var type = (DataType) node;
-			if (type.data_type != null) {
-				return get_ccode_type_id (type.data_type);
-			}
-			return "";
-		}
 		return get_ccode_attribute(node).type_id;
 	}
 



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