rebar_xref: move code to proper place

This commit is contained in:
Tuncer Ayaz 2011-12-12 17:09:03 +01:00
parent 24254f7582
commit e33d3a568f

View file

@ -46,6 +46,10 @@ xref(Config, _X) ->
false -> xref0(Config, _X)
end.
%% ===================================================================
%% Internal functions
%% ===================================================================
xref0(Config, _) ->
%% Spin up xref
{ok, _} = xref:start(xref),
@ -96,10 +100,6 @@ xref0(Config, _) ->
?FAIL
end.
%% ===================================================================
%% Internal functions
%% ===================================================================
check_exports_not_used() ->
{ok, UnusedExports0} = xref:analyze(xref, exports_not_used),
UnusedExports = filter_away_ignored(UnusedExports0),