From 7d94f4241fcb354c60aed2b50d6a08fb192d9191 Mon Sep 17 00:00:00 2001 From: Alvaro Videla Date: Fri, 16 Nov 2012 15:19:23 +0100 Subject: cleans up unused/duplicated functions --- packaging/standalone/src/rabbit_release.erl | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'packaging/standalone/src/rabbit_release.erl') diff --git a/packaging/standalone/src/rabbit_release.erl b/packaging/standalone/src/rabbit_release.erl index a7569595..877fd73e 100644 --- a/packaging/standalone/src/rabbit_release.erl +++ b/packaging/standalone/src/rabbit_release.erl @@ -15,7 +15,7 @@ %% -module(rabbit_release). --export([start/0, stop/0, make_tar/2]). +-export([start/0]). -include("rabbit.hrl"). @@ -75,10 +75,7 @@ start() -> systools:script2boot(RootName), %% Make release tarfile make_tar(RootName, RabbitHome), - terminate(0), - ok. - -stop() -> + rabbit_misc:quit(0), ok. make_tar(Release, RabbitHome) -> @@ -160,13 +157,4 @@ prepare_dir_plugin(PluginAppDescFn) -> terminate(Fmt, Args) -> io:format("ERROR: " ++ Fmt ++ "~n", Args), - terminate(?ERROR_CODE). - -terminate(Status) -> - case os:type() of - {unix, _} -> halt(Status); - {win32, _} -> init:stop(Status), - receive - after infinity -> ok - end - end. + rabbit_misc:quit(?ERROR_CODE). -- cgit v1.2.1