summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-09-16 11:08:25 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-09-16 11:08:25 +0100
commit25a4f155b0e8cb56630e51d5b89e7aa5cd2455f1 (patch)
tree5fd50c2f8d40d2c53f2c31e91f4e097b684583de /src
parentd4b0fe9cb34c507625ae154d94e2a09ceeaeb854 (diff)
downloadrabbitmq-server-git-25a4f155b0e8cb56630e51d5b89e7aa5cd2455f1.tar.gz
remove superfluous xref stuff
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_dialyzer.erl16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/rabbit_dialyzer.erl b/src/rabbit_dialyzer.erl
index 72b17c6251..a9806305ef 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").