From 74f90aa2d40c82d7180e39729f3bf1551d556bf7 Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Wed, 21 Jul 2021 11:16:09 +0200 Subject: [PATCH] Fix xref --- src/mod_private.erl | 10 ---------- src/privacy/mod_privacy.erl | 17 ++++++++++++++--- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/mod_private.erl b/src/mod_private.erl index 3cfeb2aab6..7fd3a8d3cf 100644 --- a/src/mod_private.erl +++ b/src/mod_private.erl @@ -39,18 +39,8 @@ -export([config_metrics/1]). --define(MOD_PRIVACY_BACKEND, mod_privacy_backend). -define(MOD_PRIVATE_BACKEND, mod_private_backend). -ignore_xref([ - {?MOD_PRIVACY_BACKEND, get_default_list, 2}, - {?MOD_PRIVACY_BACKEND, get_privacy_list, 3}, - {?MOD_PRIVACY_BACKEND, forget_default_list, 2}, - {?MOD_PRIVACY_BACKEND, set_default_list, 3}, - {?MOD_PRIVACY_BACKEND, get_list_names, 2}, - {?MOD_PRIVACY_BACKEND, remove_privacy_list, 3}, - {?MOD_PRIVACY_BACKEND, remove_user, 2}, - {?MOD_PRIVACY_BACKEND, replace_privacy_list, 4}, - {?MOD_PRIVACY_BACKEND, init, 2}, {?MOD_PRIVATE_BACKEND, get_all_nss, 2}, {?MOD_PRIVATE_BACKEND, multi_get_data, 3}, {?MOD_PRIVATE_BACKEND, multi_set_data, 3}, diff --git a/src/privacy/mod_privacy.erl b/src/privacy/mod_privacy.erl index cecba7fc8f..201df3e8b2 100644 --- a/src/privacy/mod_privacy.erl +++ b/src/privacy/mod_privacy.erl @@ -48,9 +48,20 @@ -export([config_metrics/1]). --ignore_xref([behaviour_info/1, check_packet/5, get_user_list/3, process_iq_get/5, - process_iq_set/4, remove_user/3, updated_list/3, behaviour_info/1, - remove_user/3, remove_domain/3, disco_local_features/1]). +-ignore_xref([ + {mod_privacy_backend, init, 2}, + {mod_privacy_backend, get_default_list, 3}, + {mod_privacy_backend, get_list_names, 3}, + {mod_privacy_backend, get_privacy_list, 4}, + {mod_privacy_backend, set_default_list, 4}, + {mod_privacy_backend, forget_default_list, 3}, + {mod_privacy_backend, remove_privacy_list, 4}, + {mod_privacy_backend, replace_privacy_list, 5}, + {mod_privacy_backend, remove_user, 3}, + {mod_privacy_backend, remove_domain, 2}, + behaviour_info/1, check_packet/5, get_user_list/3, process_iq_get/5, + process_iq_set/4, remove_user/3, updated_list/3, + remove_user/3, remove_domain/3, disco_local_features/1]). -include("mongoose.hrl"). -include("jlib.hrl").