[vala/switch-to-gir: 34/34] 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: 34/34] girparser: Do not add Object prerequisite before symbol resolution
- Date: Sun, 29 Aug 2010 16:22:34 +0000 (UTC)
commit 456d1bfa99efcfee636c84eae08359f0cd01abd8
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 c411650..65e44f3 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1887,18 +1887,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]