Permalink
Browse files

Merge pull request #1 from sbalea/master

Remove supervisor and app callbacks
  • Loading branch information...
2 parents 655dfc6 + c636126 commit 3663fb01fd98958181adc2d1300c7bfa553e1434 @bjnortier committed Jun 10, 2012
Showing with 0 additions and 45 deletions.
  1. +0 −1 src/mochijson2.app.src
  2. +0 −16 src/mochijson2_app.erl
  3. +0 −28 src/mochijson2_sup.erl
View
@@ -7,6 +7,5 @@
kernel,
stdlib
]},
- {mod, { mochijson2_app, []}},
{env, []}
]}.
View
@@ -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
@@ -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}, []} }.
-

0 comments on commit 3663fb0

Please sign in to comment.