summaryrefslogtreecommitdiff
path: root/src/rebar_utils.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r--src/rebar_utils.erl22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index 21629a4..d899dc5 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -45,7 +45,6 @@
vcs_vsn/3,
deprecated/3,
deprecated/4,
- delayed_halt/1,
erl_opts/1,
indent/1,
cleanup_code_path/1]).
@@ -205,27 +204,6 @@ deprecated(Old, New, When) ->
"'~p' will be removed ~s.~n">>,
[Old, Old, New, Old, When]).
--spec delayed_halt(integer()) -> no_return().
-delayed_halt(Code) ->
- %% Work around buffer flushing issue in erlang:halt if OTP older
- %% than R15B01.
- %% TODO: remove workaround once we require R15B01 or newer
- %% R15B01 introduced erlang:halt/2
- case erlang:is_builtin(erlang, halt, 2) of
- true ->
- halt(Code);
- false ->
- case os:type() of
- {win32, nt} ->
- timer:sleep(100),
- halt(Code);
- _ ->
- halt(Code),
- %% workaround to delay exit until all output is written
- receive after infinity -> ok end
- end
- end.
-
%% @doc Return list of erl_opts
-spec erl_opts(rebar_state:t()) -> list().
erl_opts(Config) ->