diff options
author | James Booth <boothj5@gmail.com> | 2013-07-09 22:42:20 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-07-09 22:42:20 +0100 |
commit | 907beb55f6dba952b6b07579c919fad251b7a0c0 (patch) | |
tree | 7eff794b7eacb970a768d4b25741c3c229f4103d /src | |
parent | e99a0e117a51436932d90aee5d5c1c12c5cf7681 (diff) | |
download | profani-tty-907beb55f6dba952b6b07579c919fad251b7a0c0.tar.gz |
Removed debug
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/autocomplete.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/tools/autocomplete.c b/src/tools/autocomplete.c index 086dfabe..849aaf1d 100644 --- a/src/tools/autocomplete.c +++ b/src/tools/autocomplete.c @@ -26,8 +26,6 @@ #include "autocomplete.h" -#include "ui/ui.h" - struct autocomplete_t { GSList *items; GSList *last_found; @@ -267,18 +265,14 @@ _count_tokens(char *string) { int num_tokens = 0; - cons_debug("String: %s", string); - // if no quotes, use glib if (g_strrstr(string, "\"") == NULL) { - cons_debug("NO QUOTES"); gchar **tokens = g_strsplit(string, " ", 0); num_tokens = g_strv_length(tokens); g_strfreev(tokens); // else count tokens including quoted } else { - cons_debug("QUOTES"); int length = strlen(string); int i = 0; gboolean in_quotes = FALSE; @@ -360,14 +354,10 @@ autocomplete_param_no_with_func(char *input, int *size, char *command, // count tokens properly int num_tokens = _count_tokens(inp_cpy); - cons_debug("tokens: %d", num_tokens); // if correct number of tokens, then candidate for autocompletion of last param if (num_tokens == arg_number) { - gchar *start_str = _get_start(inp_cpy, arg_number); - cons_debug("STARTSTR: %s", start_str); - gchar *comp_str = g_strdup(&inp_cpy[strlen(start_str)]); // autocomplete param |