[gnome-builder] clang: remove debug code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: remove debug code
- Date: Sun, 27 Sep 2015 12:28:45 +0000 (UTC)
commit a2292675061c5d10845ddefb8826d0193a23d040
Author: Christian Hergert <christian hergert me>
Date: Sun Sep 27 05:25:51 2015 -0700
clang: remove debug code
plugins/clang/ide-clang-completion-provider.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/plugins/clang/ide-clang-completion-provider.c b/plugins/clang/ide-clang-completion-provider.c
index 6e9a7eb..6a851b7 100644
--- a/plugins/clang/ide-clang-completion-provider.c
+++ b/plugins/clang/ide-clang-completion-provider.c
@@ -144,13 +144,13 @@ ide_clang_completion_provider_can_replay (IdeClangCompletionProvider *self,
g_assert (IDE_IS_CLANG_COMPLETION_PROVIDER (self));
if (self->last_results == NULL)
- { g_print (">>>> %s\n", G_STRLOC); return FALSE; }
+ return FALSE;
if (line == NULL || self->last_line == NULL)
- { g_print (">>>> %s\n", G_STRLOC); return FALSE; }
+ return FALSE;
if (!g_str_has_prefix (line, self->last_line))
- { g_print (">>>> %s\n", G_STRLOC); return FALSE; }
+ return FALSE;
suffix = line + strlen (self->last_line);
@@ -158,7 +158,7 @@ ide_clang_completion_provider_can_replay (IdeClangCompletionProvider *self,
{
gunichar ch = g_utf8_get_char (suffix);
if (!g_unichar_isalnum (ch) && (ch != '_'))
- { g_print (">>>> %s\n", G_STRLOC); return FALSE; }
+ return FALSE;
}
return TRUE;
@@ -463,10 +463,6 @@ ide_clang_completion_provider_populate (GtkSourceCompletionProvider *provider,
prefix = g_strstrip (gtk_text_iter_get_slice (&stop, &iter));
- g_print ("RESULTS: %p (%d)\n", self->last_results, self->last_results? self->last_results->len : 0);
- g_print (" last_line = %s\n", self->last_line ?: "<null>");
- g_print (" last_query = %s\n", self->last_query ?: "<null>");
-
/*
* We might be able to reuse the results from our previous query if
* the buffer is sufficiently similar. If so, possibly just rearrange
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]