11-module (elixir_compiler ).
2- -export ([get_opts /0 , get_opt /1 , get_opt /2 , string /2 , file /1 , file_to_path /2 , get_timeout / 0 ]).
2+ -export ([get_opts /0 , get_opt /1 , get_opt /2 , string /2 , file /1 , file_to_path /2 ]).
33-export ([core /0 , module /3 , eval_forms /4 ]).
44-include (" elixir.hrl" ).
55-compile ({parse_transform , elixir_transform }).
@@ -16,14 +16,8 @@ get_opt(Key, Dict) ->
1616 { Key , Value } -> Value
1717 end .
1818
19- get_timeout () ->
20- case application :get_env (elixir , system_services_timeout ) of
21- {ok , Val } -> Val ;
22- undefined -> 60000
23- end .
24-
2519get_opts () ->
26- gen_server :call (elixir_code_server , compiler_options , get_timeout () ).
20+ gen_server :call (elixir_code_server , compiler_options ).
2721
2822% % Compiles the given string.
2923
@@ -113,7 +107,7 @@ module(Forms, File, Options, Bootstrap, Callback) when
113107
114108core () ->
115109 application :start (elixir ),
116- gen_server :call (elixir_code_server , { compiler_options , [{docs ,false },{internal ,true }] }, get_timeout () ),
110+ gen_server :call (elixir_code_server , { compiler_options , [{docs ,false },{internal ,true }] }),
117111 [core_file (File ) || File <- core_main ()].
118112
119113% % HELPERS
@@ -145,7 +139,7 @@ module_form(Fun, Exprs, Line, File, Module, Vars) when
145139% % Generate module names from code server.
146140
147141retrieve_module_name () ->
148- gen_server :call (elixir_code_server , retrieve_module_name , get_timeout () ).
142+ gen_server :call (elixir_code_server , retrieve_module_name ).
149143
150144return_module_name (I ) ->
151145 gen_server :cast (elixir_code_server , { return_module_name , I }).
@@ -213,4 +207,4 @@ format_errors(File, Errors) ->
213207format_warnings (Bootstrap , File , Warnings ) ->
214208 lists :foreach (fun ({_ , Each }) ->
215209 lists :foreach (fun (Warning ) -> elixir_errors :handle_file_warning (Bootstrap , File , Warning ) end , Each )
216- end , Warnings ).
210+ end , Warnings ).
0 commit comments