shell: utils: Remove dead code
Coverity-CID: 188741 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
1165e852c1
commit
713ec4c71c
2 changed files with 0 additions and 22 deletions
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue