mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Remove redundant module checks and references.
This removes references that are no longer needed due to automatic references created by module dependencies. In addition this removes most calls to ast_module_check as they were checking modules which are listed as dependencies. Change-Id: I332a6e8383d4c72c8e89d988a184ab8320c4872e
This commit is contained in:
@@ -374,7 +374,7 @@ int ast_sip_initialize_sorcery_auth(void)
|
||||
ast_sorcery_object_field_register_custom(sorcery, SIP_SORCERY_AUTH_TYPE, "auth_type",
|
||||
"userpass", auth_type_handler, auth_type_to_str, NULL, 0, 0);
|
||||
|
||||
internal_sip_register_endpoint_formatter(&endpoint_auth_formatter);
|
||||
ast_sip_register_endpoint_formatter(&endpoint_auth_formatter);
|
||||
|
||||
cli_formatter = ao2_alloc(sizeof(struct ast_sip_cli_formatter_entry), NULL);
|
||||
if (!cli_formatter) {
|
||||
@@ -403,7 +403,7 @@ int ast_sip_destroy_sorcery_auth(void)
|
||||
{
|
||||
ast_cli_unregister_multiple(cli_commands, ARRAY_LEN(cli_commands));
|
||||
ast_sip_unregister_cli_formatter(cli_formatter);
|
||||
internal_sip_unregister_endpoint_formatter(&endpoint_auth_formatter);
|
||||
ast_sip_unregister_endpoint_formatter(&endpoint_auth_formatter);
|
||||
|
||||
ast_manager_unregister("PJSIPShowAuths");
|
||||
|
||||
|
Reference in New Issue
Block a user