[vala/switch-to-gir: 28/36] girparser: Do not add Object prerequisite before symbol resolution
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 28/36] girparser: Do not add Object prerequisite before symbol resolution
- Date: Sat, 6 Nov 2010 11:50:43 +0000 (UTC)
commit 7c2a4887704f6d69b317e39e28da0d27e743cce5
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]