[vala/switch-to-gir] 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] girparser: Do not add Object prerequisite before symbol resolution
- Date: Tue, 24 Aug 2010 11:52:24 +0000 (UTC)
commit 0cdb1b6ed1ca431ac553131a8ffa36c1053a7383
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 8d5ded9..3ce3a38 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -935,18 +935,6 @@ public class Vala.GirParser : CodeVisitor {
}
}
- // 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")));
-
// virtual method merging
foreach (Method m in vmethods) {
var symbol = iface.scope.lookup (m.name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]