summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2011-07-28 22:28:00 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-07-28 22:29:02 +0200
commit1846a5086ca3690af3cb34e28d714ce963397de1 (patch)
treeec50a518f014e887680b86e6a8bbb3286c93f560
parentd35f343f79f5e51aab159d175c249d326d326104 (diff)
Remove unused function rebar_utils:deprecated/4
-rw-r--r--src/rebar_utils.erl18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 2d82040..4571d17 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -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]).