mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Remove unused function rebar_utils:deprecated/4
This commit is contained in:
parent
d35f343f79
commit
1846a5086c
1 changed files with 7 additions and 11 deletions
|
@ -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]).
|
||||
|
|
Loading…
Reference in a new issue