shell: utils: Remove dead code

Coverity-CID: 188741

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-11-19 09:53:20 -08:00 committed by Anas Nashif
commit 713ec4c71c
2 changed files with 0 additions and 22 deletions

View file

@ -305,20 +305,3 @@ void shell_buffer_trim(char *buff, u16_t *buff_len)
*buff_len = *buff_len - i; *buff_len = *buff_len - i;
} }
} }
u16_t shell_str_similarity_check(const char *str_a, const char *str_b)
{
u16_t cnt = 0;
while (str_a[cnt] != '\0') {
if (str_a[cnt] != str_b[cnt]) {
return cnt;
}
if (++cnt == 0) {
return --cnt; /* too long strings */
}
}
return cnt;
}

View file

@ -52,11 +52,6 @@ void shell_spaces_trim(char *str);
*/ */
void shell_buffer_trim(char *buff, u16_t *buff_len); void shell_buffer_trim(char *buff, u16_t *buff_len);
/* Function checks how many identical characters have two strings starting
* from the first character.
*/
u16_t shell_str_similarity_check(const char *str_a, const char *str_b);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif