aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2012-09-27 12:24:45 +0200
committerHans Bolinder <[email protected]>2012-09-27 12:24:45 +0200
commit6eb52d69372f427cccb275e5330f4634a96a21c5 (patch)
tree061b339717bcc564fa474a93398b4731b4e4779b /lib/dialyzer/src/dialyzer.erl
parent8a9c261282a2f9fd96c20b38b14b5e74a30b46c5 (diff)
parentffe582b55910863462673163f984030ff13b34b7 (diff)
downloadotp-6eb52d69372f427cccb275e5330f4634a96a21c5.tar.gz
otp-6eb52d69372f427cccb275e5330f4634a96a21c5.tar.bz2
otp-6eb52d69372f427cccb275e5330f4634a96a21c5.zip
Merge branch 'hb/dialyzer/nowarn_unused_fun/OTP-10433'
* hb/dialyzer/nowarn_unused_fun/OTP-10433: dialyzer: Do not output warnings for unused funs
Diffstat (limited to 'lib/dialyzer/src/dialyzer.erl')
-rw-r--r--lib/dialyzer/src/dialyzer.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dialyzer/src/dialyzer.erl b/lib/dialyzer/src/dialyzer.erl
index 3e3c12405f..d875c45c4a 100644
--- a/lib/dialyzer/src/dialyzer.erl
+++ b/lib/dialyzer/src/dialyzer.erl
@@ -2,7 +2,7 @@
%%-----------------------------------------------------------------------
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2006-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2006-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -380,8 +380,6 @@ message_to_string({pattern_match_cov, [Pat, Type]}) ->
message_to_string({unmatched_return, [Type]}) ->
io_lib:format("Expression produces a value of type ~s,"
" but this value is unmatched\n", [Type]);
-message_to_string({unused_fun, []}) ->
- io_lib:format("Function will never be called\n", []);
message_to_string({unused_fun, [F, A]}) ->
io_lib:format("Function ~w/~w will never be called\n", [F, A]);
%%----- Warnings for specs and contracts -------------------