Skip to content

Commit

Permalink
remove needless pre loading of module list
Browse files Browse the repository at this point in the history
  • Loading branch information
tonini committed Aug 16, 2015
1 parent 8ae3b0b commit f67f428
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions server/informant.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ defmodule Alchemist.Informant do
end

def get_modules do
Application.get_env(:"alchemist.el", :loaded_modules)
++ all_applications_modules
all_applications_modules
|> Enum.uniq
|> Stream.filter(fn(module) -> moduledoc?(module) end)
end
Expand Down
6 changes: 0 additions & 6 deletions server/server.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ defmodule Alchemist.Server do
paths = load_paths(env)
apps = load_apps(env)

store_loaded_modules(loaded)

read_input(line)

purge_modules(loaded)
Expand Down Expand Up @@ -54,10 +52,6 @@ defmodule Alchemist.Server do
for {m,_} <- :code.all_loaded, do: m
end

defp store_loaded_modules(modules) do
Application.put_env(:"alchemist.el", :loaded_modules, modules)
end

defp load_paths(env) do
for path <- Path.wildcard("_build/#{env}/lib/*/ebin") do
Code.prepend_path(path)
Expand Down

0 comments on commit f67f428

Please sign in to comment.