diff options
author | Björn Gustavsson <[email protected]> | 2012-12-03 11:59:17 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-01-09 13:55:36 +0100 |
commit | 35a1863c7101821b841df78a62699584a6d50d81 (patch) | |
tree | d406cf17c44b510e5ef3a91c8ed13b692c1aa3bb /lib/kernel/src/code.erl | |
parent | beb660aa59a8d9cd7f65b8b91dc5dd9bc74015e0 (diff) | |
download | otp-35a1863c7101821b841df78a62699584a6d50d81.tar.gz otp-35a1863c7101821b841df78a62699584a6d50d81.tar.bz2 otp-35a1863c7101821b841df78a62699584a6d50d81.zip |
kernel: Eliminate use of packages in code and code_server
Diffstat (limited to 'lib/kernel/src/code.erl')
-rw-r--r-- | lib/kernel/src/code.erl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index c808ac7cb7..361f2bdf8a 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -359,7 +359,6 @@ load_code_server_prerequisites() -> hipe_unified_loader, lists, os, - packages, unicode], [M = M:module_info(module) || M <- Needed], ok. @@ -413,7 +412,7 @@ which(Module) when is_atom(Module) -> end. which2(Module) -> - Base = to_path(Module), + Base = atom_to_list(Module), File = filename:basename(Base) ++ objfile_extension(), Path = get_path(), which(File, filename:dirname(Base), Path). @@ -547,9 +546,6 @@ has_ext(Ext, Extlen, File) -> _ -> false end. -to_path(X) -> - filename:join(packages:split(X)). - -spec load_native_code_for_all_loaded() -> ok. load_native_code_for_all_loaded() -> Architecture = erlang:system_info(hipe_architecture), |