diff options
author | Björn Gustavsson <[email protected]> | 2016-01-27 12:02:18 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-01-27 12:53:06 +0100 |
commit | db61a493f72cc13f3e9b709b8e86da7e3d246f2b (patch) | |
tree | 5e720607ec8fe2411ea577f3da3e4fd72d51c093 | |
parent | 5ca1e8e321f6782952e6b2627c1255d593e5eb0c (diff) | |
download | otp-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.
-rw-r--r-- | lib/kernel/src/code.erl | 2 | ||||
-rw-r--r-- | lib/kernel/src/code_server.erl | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index ae28c97b47..b2940dc479 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -305,7 +305,7 @@ get_mode() -> call(get_mode). %%----------------------------------------------------------------- call(Req) -> - code_server:call(code_server, Req). + code_server:call(Req). -spec start_link() -> {'ok', pid()} | {'error', 'crash'}. start_link() -> 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 |