[vala/switch-to-gir: 28/34] girparser: Do not add Object prerequisite before symbol resolution



commit afe1e6ea4e5a718d4e898d01d0bbd16e1434ecf1
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 d142fee..c601739 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]