From 1846a5086ca3690af3cb34e28d714ce963397de1 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 28 Jul 2011 22:28:00 +0200 Subject: [PATCH] Remove unused function rebar_utils:deprecated/4 --- src/rebar_utils.erl | 18 +++++++----------- 1 file 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]).