Permalink
Browse files

Remove _app ans _sup files and convert to a library app.

  • Loading branch information...
1 parent 655dfc6 commit c6361264768e090488a7f396b09f81c12a30dd4a @sbalea sbalea committed Apr 5, 2011
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
@@ -7,6 +7,5 @@
kernel,
stdlib
]},
- {mod, { mochijson2_app, []}},
{env, []}
]}.
@@ -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.
@@ -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 c636126

Please sign in to comment.