summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2010-10-16 22:36:36 -0700
committerEvan Nemerson <evan@coeus-group.com>2010-11-08 01:43:18 -0800
commit2110dba8a7171be2e3eb0febe0515ad06ae3782f (patch)
treed679293ae636a7b57b57bc6a5909a082868c699a /compiler
parentb505ad8a4a6cb9093d790a9309d81df8e81a6ffb (diff)
downloadvala-2110dba8a7171be2e3eb0febe0515ad06ae3782f.tar.gz
girparser: Stop parsing if the context already has the provided package
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 772ed94a0..ae88a6b0f 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -328,12 +328,6 @@ class Vala.Compiler {
var gir_parser = new GirParser ();
gir_parser.parse (context);
- if (gir_parser.get_package_names != null) {
- foreach (var pkg in gir_parser.get_package_names ()) {
- context.add_package (pkg);
- }
- }
-
if (context.report.get_errors () > 0 || (fatal_warnings && context.report.get_warnings () > 0)) {
return quit ();
}