fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/40146?usp=email )
Change subject: osmo_dia2gsup: remove unused start/0 ......................................................................
osmo_dia2gsup: remove unused start/0
This function is not used anywhere. It's also not consistent with the start_link/0, which is starting the gen_server instance.
Change-Id: Ibd4e1d86dc59d792f7f6ac027ee63fc2086b31c3 --- M src/osmo_dia2gsup.erl 1 file changed, 1 insertion(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo_dia2gsup refs/changes/46/40146/1
diff --git a/src/osmo_dia2gsup.erl b/src/osmo_dia2gsup.erl index cda616b..47ca2a4 100644 --- a/src/osmo_dia2gsup.erl +++ b/src/osmo_dia2gsup.erl @@ -40,7 +40,7 @@
% API -export([start_link/0]). --export([start/0, stop/0]). +-export([stop/0]).
% gen_server callbacks -export([init/1, handle_call/3, handle_cast/2, handle_info/2]). @@ -80,10 +80,6 @@ start_link() -> gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).
-start() -> - application:ensure_all_started(?MODULE), - start_link(). - stop() -> gen_server:cast(?SERVER, stop).