From a0b3f5be7c2922e9faf21b2a2ee06e0a1891c5bd Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 20 Aug 2016 17:05:40 +0100 Subject: Remove unused code --- cmd.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cmd.c b/cmd.c index c20ccfc..fd7ec9e 100644 --- a/cmd.c +++ b/cmd.c @@ -541,7 +541,6 @@ char* cmd_mng_autocomplete( cmd_mng_t *cmng, char *cmd, size_t cmd_sz ) memset( &tl, 0, sizeof( cmd_tok_t )); int i; - printf("[%s]\n", cmd); if ( parse_cmd(ptr, cmd, cmd_sz) == -1) { printf("Cmd problems\n"); @@ -550,25 +549,14 @@ char* cmd_mng_autocomplete( cmd_mng_t *cmng, char *cmd, size_t cmd_sz ) iter = ptr->next; args = cmd_arg_create( iter ); - - - for (i=0; iargc; i++) - { - printf("AC ARG:%d TYPE:%d %s\n", i, args->type[i], args->argv[i]); - } - - //printf("Unkn command\n"); //if command not found offer auto complete options if (args->argc > 0) { - //printf("asd\n"); struct cmd_acq_head_t *ac = cmd_acq(tab,args->argv[0]); if (ac != NULL) { //calculate string str - //printf("\n>"); - //printf("Did you mean "); SLIST_FOREACH(iter_sugg,ac,next_sugg) { //printf("%s ", iter_sugg->suggestion); @@ -584,18 +572,15 @@ char* cmd_mng_autocomplete( cmd_mng_t *cmng, char *cmd, size_t cmd_sz ) cnt_sz = 0; SLIST_FOREACH(iter_sugg,ac,next_sugg) { - //printf("%s ", iter_sugg->suggestion); //double logical usage ac_sz = strlen(iter_sugg->suggestion); memcpy( ac_str+cnt_sz, iter_sugg->suggestion, ac_sz); cnt_sz += ac_sz; ac_str[cnt_sz] = ' '; - //memcpy( ac_str+cnt_sz, " ", 1); cnt_sz += 1; } ac_str[cnt_sz] = '\0'; ret = ac_str; - //printf("\n"); } cmd_acq_free( ac ); } -- cgit v1.2.3