[gnome-builder/wip/chergert/unittests: 1/2] ctags: be less spammy on adding indexes



commit 6102ab716cfa795e0b708532db21d611a4eeb6c3
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 15 23:55:12 2017 -0700

    ctags: be less spammy on adding indexes

 src/plugins/ctags/ide-ctags-completion-provider.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/ctags/ide-ctags-completion-provider.c 
b/src/plugins/ctags/ide-ctags-completion-provider.c
index 0b8bfa8..a42ed8c 100644
--- a/src/plugins/ctags/ide-ctags-completion-provider.c
+++ b/src/plugins/ctags/ide-ctags-completion-provider.c
@@ -45,8 +45,6 @@ ide_ctags_completion_provider_add_index (IdeCtagsCompletionProvider *self,
   GFile *file;
   gsize i;
 
-  IDE_ENTRY;
-
   g_return_if_fail (IDE_IS_CTAGS_COMPLETION_PROVIDER (self));
   g_return_if_fail (!index || IDE_IS_CTAGS_INDEX (index));
   g_return_if_fail (self->indexes != NULL);
@@ -62,14 +60,11 @@ ide_ctags_completion_provider_add_index (IdeCtagsCompletionProvider *self,
         {
           g_ptr_array_remove_index_fast (self->indexes, i);
           g_ptr_array_add (self->indexes, g_object_ref (index));
-
-          IDE_EXIT;
+          return;
         }
     }
 
   g_ptr_array_add (self->indexes, g_object_ref (index));
-
-  IDE_EXIT;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]