summaryrefslogtreecommitdiff
path: root/lib/kernel/src/code.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kernel/src/code.erl')
-rw-r--r--lib/kernel/src/code.erl24
1 files changed, 4 insertions, 20 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl
index e89a6a27ce..13fed657d1 100644
--- a/lib/kernel/src/code.erl
+++ b/lib/kernel/src/code.erl
@@ -67,7 +67,6 @@
del_paths/1,
clear_cache/0,
replace_path/2,replace_path/3,
- rehash/0,
start_link/0,
which/1,
get_doc/1,
@@ -81,8 +80,8 @@
modified_modules/0,
get_mode/0]).
--deprecated({rehash,0,"the code path cache feature has been removed"}).
--deprecated({is_module_native,1,"HiPE has been removed"}).
+-removed({rehash,0,"the code path cache feature has been removed"}).
+-removed({is_module_native,1,"HiPE has been removed"}).
-export_type([load_error_rsn/0, load_ret/0]).
-export_type([prepared_code/0]).
@@ -113,7 +112,7 @@
%%% BIFs
--export([get_chunk/2, is_module_native/1, module_md5/1]).
+-export([get_chunk/2, module_md5/1]).
-spec get_chunk(Bin, Chunk) ->
binary() | undefined when
@@ -137,16 +136,6 @@ get_chunk_1(Beam, Chunk) ->
erlang:raise(error, Reason, [{Mod,get_chunk,L,Loc}|Rest])
end.
--spec is_module_native(Module) -> true | false | undefined when
- Module :: module().
-is_module_native(Module) when is_atom(Module) ->
- case is_loaded(Module) of
- {file, _} -> false;
- false -> undefined
- end;
-is_module_native(Module) ->
- erlang:error(badarg, [Module]).
-
-spec module_md5(binary()) -> binary() | undefined.
module_md5(<<"FOR1", _/bits>>=Beam) ->
@@ -471,11 +460,6 @@ replace_path(Name, Dir, Cache) when (is_atom(Name) orelse is_list(Name)),
(is_atom(Dir) orelse is_list(Dir)), ?is_cache(Cache) ->
call({replace_path,Name,Dir,Cache}).
--spec rehash() -> 'ok'.
-rehash() ->
- cache_warning(),
- ok.
-
-spec get_mode() -> 'embedded' | 'interactive'.
get_mode() -> call(get_mode).
@@ -1203,4 +1187,4 @@ path_files([Path|Tail]) ->
[{Path,Files} | path_files(Tail)];
_Error ->
path_files(Tail)
- end. \ No newline at end of file
+ end.