[vala] girparser: Do not add Object prerequisite before symbol resolution



commit fc7fe82fbd0b19b6caaf7ef23dc8a1df3a020be9
Author: Luca Bruno <lethalman88 gmail com>
Date:   Tue Aug 24 13:02:57 2010 +0200

    girparser: Do not add Object prerequisite before symbol resolution

 vala/valagirparser.vala |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index f383985..5b95ff4 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1916,18 +1916,6 @@ public class Vala.GirParser : CodeVisitor {
 			pop_metadata ();
 		}
 
-		// ensure we have at least one instantiable prerequisite (GLib.Object)
-		bool has_instantiable_prereq = false;
-		foreach (DataType prereq in iface.get_prerequisites ()) {
-			if (prereq.data_type is Class) {
-				has_instantiable_prereq = true;
-				break;
-			}
-		}
-
-		if (!has_instantiable_prereq)
-			iface.add_prerequisite (new ObjectType ((ObjectTypeSymbol) glib_ns.scope.lookup ("Object")));
-
 		merge_add_process (iface);
 		current_symbols_info = old_symbols_info;
 



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