Permalink
Browse files

Get rid of the extra process

  • Loading branch information...
BjRo committed Jan 19, 2014
1 parent ae8a2e3 commit 6c8cceea1dded490d38af7af2e54d5f0b01fbea0
Showing with 2 additions and 23 deletions.
  1. +1 −7 lib/ap.ex
  2. +0 −15 lib/ap/supervisor.ex
  3. +1 −1 mix.exs
View
@@ -1,11 +1,5 @@
defmodule AP do
- use Application.Behaviour
-
- def start(_type, _args) do
- AP.Supervisor.start_link
- end
-
def ap(data, options // []) do
- IO.puts AP.Format.format(data, options)
+ IO.puts(AP.Format.format(data, options))
end
end
View
@@ -1,15 +0,0 @@
-defmodule AP.Supervisor do
- use Supervisor.Behaviour
-
- def start_link do
- :supervisor.start_link(__MODULE__, [])
- end
-
- def init([]) do
- children = [
- # worker(Ap.Worker, [])
- ]
-
- supervise(children, strategy: :one_for_one)
- end
-end
View
@@ -9,7 +9,7 @@ defmodule AP.Mixfile do
end
def application do
- [mod: { AP, [] }]
+ []
end
defp deps do

0 comments on commit 6c8ccee

Please sign in to comment.