diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-08-08 10:29:50 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-08-08 10:29:50 +0100 |
| commit | 348e3a4a099c4d415e18946cd181f225af2fd98b (patch) | |
| tree | d1a1330ec3e44a99bb97e9f1288e4da64c3c20fa /src | |
| parent | 094da81a5bc1b6e9e3eb3aa3f62794c30279f1e9 (diff) | |
| download | rabbitmq-server-git-348e3a4a099c4d415e18946cd181f225af2fd98b.tar.gz | |
refactor: get rid of rabbit_misc:quit/2
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_misc.erl | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 5eb24327be..8f6a9bcf4e 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -19,7 +19,7 @@ -include("rabbit_framing.hrl"). -export([method_record_type/1, polite_pause/0, polite_pause/1]). --export([die/1, frame_error/2, amqp_error/4, quit/1, quit/2, +-export([die/1, frame_error/2, amqp_error/4, quit/1, protocol_error/3, protocol_error/4, protocol_error/1]). -export([not_found/1, assert_args_equivalence/4]). -export([dirty_read/1]). @@ -92,7 +92,6 @@ (rabbit_framing:amqp_exception()) -> channel_or_connection_exit()). -spec(quit/1 :: (integer()) -> no_return()). --spec(quit/2 :: (string(), [term()]) -> no_return()). -spec(frame_error/2 :: (rabbit_framing:amqp_method_name(), binary()) -> rabbit_types:connection_exit()). @@ -396,13 +395,6 @@ report_coverage_percentage(File, Cov, NotCov, Mod) -> confirm_to_sender(Pid, MsgSeqNos) -> gen_server2:cast(Pid, {confirm, MsgSeqNos, self()}). -%% @doc Halts the emulator after printing out an error message -%% io-formatted with the supplied arguments. The exit status of the -%% beam process will be set to 1. -quit(Fmt, Args) -> - io:format("ERROR: " ++ Fmt ++ "~n", Args), - quit(1). - %% @doc Halts the emulator returning the given status code to the os. %% On Windows this function will block indefinitely so as to give the io %% subsystem time to flush stdout completely. |
