summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-10-17 16:12:59 +0200
committerColin Walters <walters@verbum.org>2013-10-17 15:02:59 -0400
commit298e34c20f0187f4daad87ca952fca6f7af28481 (patch)
tree06fa01aa959da4954c8a46674088282a9f50ea22
parent90289794efacae16e96cf90c513799039603939f (diff)
downloadgobject-introspection-298e34c20f0187f4daad87ca952fca6f7af28481.tar.gz
Revert "sourcescanner: Do some fast path checks on the filename"
This reverts commit 8c0ca4717d834a6c578579656683c55ea22a06f4. The "fast" path doesn't seem to work at all. Testing shows creating Gtk-3.0.gir still takes about 30 seconds with this (even on a Linux box)... https://bugzilla.gnome.org/show_bug.cgi?id=710320
-rw-r--r--giscanner/sourcescanner.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/giscanner/sourcescanner.c b/giscanner/sourcescanner.c
index 97150292..830d21cd 100644
--- a/giscanner/sourcescanner.c
+++ b/giscanner/sourcescanner.c
@@ -269,11 +269,6 @@ already_has_current_file (GISourceScanner *scanner)
GFile *current_file;
g_assert (scanner->current_filename);
-
- for (l = scanner->filenames; l != NULL; l = l->next)
- if (strcmp (scanner->current_filename, l->data) == 0)
- return TRUE;
-
current_file = g_file_new_for_path (scanner->current_filename);
for (l = scanner->filenames; l != NULL; l = l->next)