diff options
Diffstat (limited to 'src/rebar_xref.erl')
-rw-r--r-- | src/rebar_xref.erl | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/rebar_xref.erl b/src/rebar_xref.erl index 0af741f..84d422e 100644 --- a/src/rebar_xref.erl +++ b/src/rebar_xref.erl @@ -40,17 +40,7 @@ %% Public API %% =================================================================== -xref(Config, _X) -> - case rebar_app_utils:is_skipped_app() of - true -> ok; - false -> xref0(Config, _X) - end. - -%% =================================================================== -%% Internal functions -%% =================================================================== - -xref0(Config, _) -> +xref(Config, _) -> %% Spin up xref {ok, _} = xref:start(xref), ok = xref:set_library_path(xref, code_path()), @@ -100,6 +90,10 @@ xref0(Config, _) -> ?FAIL end. +%% =================================================================== +%% Internal functions +%% =================================================================== + check_exports_not_used() -> {ok, UnusedExports0} = xref:analyze(xref, exports_not_used), UnusedExports = filter_away_ignored(UnusedExports0), |