]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Do not add Object prerequisite before symbol resolution
authorLuca Bruno <lethalman88@gmail.com>
Tue, 24 Aug 2010 11:02:57 +0000 (13:02 +0200)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 8 Nov 2010 09:43:19 +0000 (01:43 -0800)
vala/valagirparser.vala

index f383985dbcdc213217df8d2362440fdb0cd2d82a..5b95ff45f4fd3b22ae82aa74dbe35bec833fa1d0 100644 (file)
@@ -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;