]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix regression when getting type_id of data types
authorLuca Bruno <lucabru@src.gnome.org>
Sat, 6 Aug 2011 12:36:04 +0000 (14:36 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Sat, 6 Aug 2011 12:36:57 +0000 (14:36 +0200)
codegen/valaccodebasemodule.vala

index e1d05257b9f14a408eedd1bdfed40120d8bac292..7b5c0ba970a5fd20f1924d2eb1d46771edbb45eb 100644 (file)
@@ -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;
        }