Skip to content

Commit

Permalink
Merge pull request #3440 from esl/quick_xref_unneeded_ignore
Browse files Browse the repository at this point in the history
Quick xref unneeded ignore
  • Loading branch information
chrzaszcz authored Dec 9, 2021
2 parents 4463938 + 0f8dfc9 commit af8715f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
6 changes: 0 additions & 6 deletions src/inbox/mod_inbox_entries.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 0 additions & 2 deletions src/inbox/mod_inbox_muclight.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down
17 changes: 0 additions & 17 deletions src/jlib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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").
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 0 additions & 2 deletions src/xmpp_router.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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()}.
Expand Down

0 comments on commit af8715f

Please sign in to comment.