diff --git a/src/inbox/mod_inbox_entries.erl b/src/inbox/mod_inbox_entries.erl index 121708a2e3..8bc3b3e4cc 100644 --- a/src/inbox/mod_inbox_entries.erl +++ b/src/inbox/mod_inbox_entries.erl @@ -10,12 +10,6 @@ -export([should_be_stored_in_inbox/1]). -export([extensions_result/3]). --define(MOD_INBOX_BACKEND, mod_inbox_backend). --ignore_xref([ - {?MOD_INBOX_BACKEND, get_entry_properties, 2}, - {?MOD_INBOX_BACKEND, set_entry_properties, 3} -]). - -spec process_iq_conversation(Acc :: mongoose_acc:t(), From :: jid:jid(), To :: jid:jid(), diff --git a/src/inbox/mod_inbox_muclight.erl b/src/inbox/mod_inbox_muclight.erl index b308190204..9f905444f0 100644 --- a/src/inbox/mod_inbox_muclight.erl +++ b/src/inbox/mod_inbox_muclight.erl @@ -13,8 +13,6 @@ -export([handle_outgoing_message/5, handle_incoming_message/5]). --ignore_xref([{mod_inbox_backend, remove_inbox_row, 2}]). - -type role() :: r_member() | r_owner() | r_none(). -type r_member() :: binary(). -type r_owner() :: binary(). diff --git a/src/jlib.erl b/src/jlib.erl index 212094ee6a..9f2f47a683 100644 --- a/src/jlib.erl +++ b/src/jlib.erl @@ -46,7 +46,6 @@ timestamp_to_xml/3, decode_base64/1, encode_base64/1, - ip_to_list/1, rsm_encode/1, rsm_decode/1, stanza_error/3, @@ -56,8 +55,6 @@ stream_errort/3, remove_delay_tags/1]). --ignore_xref([ip_to_list/1]). - -include_lib("exml/include/exml.hrl"). -include_lib("exml/include/exml_stream.hrl"). % only used to define stream types -include("jlib.hrl"). @@ -497,20 +494,6 @@ decode_base64(S) -> encode_base64(B) -> base64:encode(B). -%% @doc Convert Erlang inet IP to list --spec ip_to_list(inet:ip4_address() | {inet:ip_address(), inet:port_number()} - ) -> string(). -ip_to_list({IP, _Port}) -> - ip_to_list(IP); -ip_to_list({_, _, _, _, _, _, _, _} = Ipv6Address) -> - inet_parse:ntoa(Ipv6Address); -%% This function clause could use inet_parse too: -ip_to_list({A, B, C, D}) -> - lists:flatten(io_lib:format("~w.~w.~w.~w", [A, B, C, D])); -ip_to_list(IP) -> - lists:flatten(io_lib:format("~w", [IP])). - - -spec stanza_error( Code :: binary() , Type :: binary() , Condition :: binary() diff --git a/src/xmpp_router.erl b/src/xmpp_router.erl index c787992fae..be5f54db48 100644 --- a/src/xmpp_router.erl +++ b/src/xmpp_router.erl @@ -10,8 +10,6 @@ %%%------------------------------------------------------------------- -module(xmpp_router). --ignore_xref([behaviour_info/1]). - -callback route(From :: jid:jid(), To :: jid:jid(), Acc :: mongoose_acc:t(), Packet :: exml:element()) -> {done, mongoose_acc:t()} | {jid:jid(), jid:jid(), mongoose_acc:t(), exml:element()}.