[gnome-builder] context: stop loading files on init
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] context: stop loading files on init
- Date: Sat, 20 Jun 2015 09:45:13 +0000 (UTC)
commit a349472d0b1d0390b7a4e51640b644960e5bb21d
Author: Christian Hergert <christian hergert me>
Date: Sun Jun 14 20:41:11 2015 -0700
context: stop loading files on init
libide/ide-context.c | 37 -------------------------------------
1 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index ddc179c..2bc233b 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -894,42 +894,6 @@ ide_context_init_project_name (gpointer source_object,
}
static void
-ide_context_init_files (gpointer source_object,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_autoptr(GTask) task = NULL;
- g_autoptr(IdeProjectItem) files = NULL;
- IdeContext *context = source_object;
- IdeProject *project;
- IdeProjectItem *root;
- IdeVcs *vcs;
- GFile *workdir;
-
- g_assert (IDE_IS_CONTEXT (context));
-
- vcs = ide_context_get_vcs (context);
- workdir = ide_vcs_get_working_directory (vcs);
- project = ide_context_get_project (context);
- root = ide_project_get_root (project);
- files = g_object_new (IDE_TYPE_PROJECT_FILES,
- "context", context,
- "parent", root,
- NULL);
- ide_project_item_append (root, files);
-
- task = ide_load_directory_task_new (context,
- workdir,
- files,
- 0,
- G_PRIORITY_DEFAULT,
- cancellable,
- callback,
- user_data);
-}
-
-static void
ide_context_init_vcs_cb (GObject *object,
GAsyncResult *result,
gpointer user_data)
@@ -1385,7 +1349,6 @@ ide_context_init_async (GAsyncInitable *initable,
ide_context_init_services,
ide_context_init_build_system,
ide_context_init_vcs,
- ide_context_init_files,
ide_context_init_project_name,
ide_context_init_back_forward_list,
ide_context_init_snippets,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]