summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-08-08 10:29:50 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-08-08 10:29:50 +0100
commitaafa49a381e3600ef28927a28bfb27a84eb3004b (patch)
treed1a1330ec3e44a99bb97e9f1288e4da64c3c20fa
parent2a37bc5af6a663724d2e1187e48299142a6798d2 (diff)
downloadrabbitmq-server-aafa49a381e3600ef28927a28bfb27a84eb3004b.tar.gz
refactor: get rid of rabbit_misc:quit/2
-rw-r--r--src/rabbit_misc.erl10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 5eb24327..8f6a9bcf 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.