aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/code_server.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-27 12:02:18 +0100
committerBjörn Gustavsson <[email protected]>2016-01-27 12:53:06 +0100
commitdb61a493f72cc13f3e9b709b8e86da7e3d246f2b (patch)
tree5e720607ec8fe2411ea577f3da3e4fd72d51c093 /lib/kernel/src/code_server.erl
parent5ca1e8e321f6782952e6b2627c1255d593e5eb0c (diff)
downloadotp-db61a493f72cc13f3e9b709b8e86da7e3d246f2b.tar.gz
otp-db61a493f72cc13f3e9b709b8e86da7e3d246f2b.tar.bz2
otp-db61a493f72cc13f3e9b709b8e86da7e3d246f2b.zip
Remove first argument of code_server:call()
Remove the first argument for code_server:call(). It makes no sense. The only caller is 'code'. Note that the code_server module is undocumented and that code_server:call() is an internal helper function.
Diffstat (limited to 'lib/kernel/src/code_server.erl')
-rw-r--r--lib/kernel/src/code_server.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl
index 3fbbb98b94..6f2ed737f7 100644
--- a/lib/kernel/src/code_server.erl
+++ b/lib/kernel/src/code_server.erl
@@ -22,7 +22,7 @@
%% This file holds the server part of the code_server.
-export([start_link/1,
- call/2,
+ call/1,
system_continue/3,
system_terminate/4,
system_code_change/4,
@@ -133,8 +133,8 @@ split_paths([C|T], S, Path, Paths) ->
split_paths([], _S, Path, Paths) ->
lists:reverse(Paths, [lists:reverse(Path)]).
-call(Name, Req) ->
- Name ! {code_call, self(), Req},
+call(Req) ->
+ ?MODULE ! {code_call, self(), Req},
receive
{?MODULE, Reply} ->
Reply