diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-09-16 11:08:25 +0100 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-09-16 11:08:25 +0100 |
commit | d5ecf245019f44bfd9c99c5be74447e2096c6762 (patch) | |
tree | 5fd50c2f8d40d2c53f2c31e91f4e097b684583de | |
parent | 50808a297d8acf8f192c436e0152b8f2f95ca3cd (diff) | |
download | rabbitmq-server-d5ecf245019f44bfd9c99c5be74447e2096c6762.tar.gz |
remove superfluous xref stuff
-rw-r--r-- | src/rabbit_dialyzer.erl | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/rabbit_dialyzer.erl b/src/rabbit_dialyzer.erl index 72b17c62..a9806305 100644 --- a/src/rabbit_dialyzer.erl +++ b/src/rabbit_dialyzer.erl @@ -32,7 +32,7 @@ -module(rabbit_dialyzer). -export([create_basic_plt/1, add_to_plt/2, dialyze_files/2, - halt_with_code/1, xref_dir/1]). + halt_with_code/1]). %%---------------------------------------------------------------------------- @@ -41,7 +41,6 @@ -spec(create_basic_plt/1 :: (file:filename()) -> 'ok'). -spec(add_to_plt/2 :: (file:filename(), string()) -> 'ok'). -spec(dialyze_files/2 :: (file:filename(), string()) -> 'ok'). --spec(xref_dir/1 :: (file:filename()) -> 'ok'). -spec(halt_with_code/1 :: (atom()) -> no_return()). -endif. @@ -79,19 +78,6 @@ dialyze_files(PltPath, ModifiedFiles) -> end, ok. -xref_dir(EbinDir) -> - XrefErrors = xref:d(EbinDir), - [case proplists:get_value(W, XrefErrors, []) of - [] -> ok; - Problems -> io:format("~p functions:~n", [W]), - print_warnings(Problems, fun show_function/1) - end - || W <- [deprecated, undefined, unused]], - ok. - -show_function({{Mod,Fun,Ar},{PMod,PFun,PAr}}) -> - io_lib:format("~s:~s/~p called by ~s:~s/~p", [PMod, PFun, PAr, - Mod, Fun, Ar]). print_warnings(Warnings, FormatFun) -> [io:format("~s~n", [FormatFun(W)]) || W <- Warnings], io:format("~n"). |