Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remove supervisor and app callbacks #1

Merged
merged 1 commit into from

2 participants

@sbalea

There is no need for a supervisor or app callback for something that is a purely functional library app.

@bjnortier bjnortier merged commit 3663fb0 into bjnortier:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
1  src/mochijson2.app.src
@@ -7,6 +7,5 @@
kernel,
stdlib
]},
- {mod, { mochijson2_app, []}},
{env, []}
]}.
View
16 src/mochijson2_app.erl
@@ -1,16 +0,0 @@
--module(mochijson2_app).
-
--behaviour(application).
-
-%% Application callbacks
--export([start/2, stop/1]).
-
-%% ===================================================================
-%% Application callbacks
-%% ===================================================================
-
-start(_StartType, _StartArgs) ->
- mochijson2_sup:start_link().
-
-stop(_State) ->
- ok.
View
28 src/mochijson2_sup.erl
@@ -1,28 +0,0 @@
-
--module(mochijson2_sup).
-
--behaviour(supervisor).
-
-%% API
--export([start_link/0]).
-
-%% Supervisor callbacks
--export([init/1]).
-
-%% Helper macro for declaring children of supervisor
--define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).
-
-%% ===================================================================
-%% API functions
-%% ===================================================================
-
-start_link() ->
- supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-
-%% ===================================================================
-%% Supervisor callbacks
-%% ===================================================================
-
-init([]) ->
- {ok, { {one_for_one, 5, 10}, []} }.
-
Something went wrong with that request. Please try again.