mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
CLI: Remove compatibility code.
Previous commits maintained compatibility with older remote console clients as well as maintaining all API's. Remove the following compatibility code: * ast_cli_generatornummatches. * Remote command "_command nummatches". * Sorting / duplicate removal by remote console. Change-Id: I59e6ce94fa57ae564888442049695f7e46746437
This commit is contained in:
@@ -3015,14 +3015,8 @@ static struct ast_vector_string *ast_el_strtoarr(char *buf)
|
||||
break;
|
||||
}
|
||||
|
||||
/* Older daemons sent duplicates. */
|
||||
if (AST_VECTOR_GET_CMP(vec, retstr, strcasecmp)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
retstr = ast_strdup(retstr);
|
||||
/* Older daemons sent unsorted. */
|
||||
if (!retstr || AST_VECTOR_ADD_SORTED(vec, retstr, strcasecmp)) {
|
||||
if (!retstr || AST_VECTOR_APPEND(vec, retstr)) {
|
||||
ast_free(retstr);
|
||||
goto vector_cleanup;
|
||||
}
|
||||
|
Reference in New Issue
Block a user