Remove unused function rebar_utils:deprecated/4

This commit is contained in:
Tuncer Ayaz 2011-07-28 22:28:00 +02:00
parent d35f343f79
commit 1846a5086c

View file

@ -41,7 +41,7 @@
find_executable/1,
prop_check/3,
expand_code_path/0,
deprecated/4, deprecated/5]).
deprecated/5]).
-include("rebar.hrl").
@ -264,16 +264,12 @@ emulate_escript_foldl(Fun, Acc, File) ->
deprecated(Key, Old, New, Opts, When) ->
case lists:member(Old, Opts) of
true ->
deprecated(Key, Old, New, When);
io:format(
<<"WARNING: deprecated ~p option used~n"
"Option '~p' has been deprecated~n"
"in favor of '~p'.~n"
"'~p' will be removed ~s.~n~n">>,
[Key, Old, New, Old, When]);
false ->
ok
end.
deprecated(Key, Old, New, When) ->
io:format(
<<
"WARNING: deprecated ~p option used~n"
"Option '~p' has been deprecated~n"
"in favor of '~p'.~n"
"'~p' will be removed ~s.~n~n"
>>, [Key, Old, New, Old, When]).