diff options
author | Richard Carlsson <[email protected]> | 2014-05-14 14:54:16 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-05-14 14:54:57 +0200 |
commit | 0dbcbea0cf52672ef1cf051c3cd7640eb7ff728e (patch) | |
tree | 9727e6c28cd5b6010cfe581442ab83061c5e38d2 | |
parent | 4ad572a8b66df8174d92157411326aab95ee8124 (diff) | |
download | otp-0dbcbea0cf52672ef1cf051c3cd7640eb7ff728e.tar.gz otp-0dbcbea0cf52672ef1cf051c3cd7640eb7ff728e.tar.bz2 otp-0dbcbea0cf52672ef1cf051c3cd7640eb7ff728e.zip |
Remove obsolete 'imports' entry from module_info/1/2 functions
It previously always returned an empty list
and was documented to be removed.
-rw-r--r-- | erts/emulator/beam/atom.names | 1 | ||||
-rw-r--r-- | erts/emulator/beam/beam_load.c | 3 | ||||
-rw-r--r-- | system/doc/reference_manual/modules.xml | 12 |
3 files changed, 1 insertions, 15 deletions
diff --git a/erts/emulator/beam/atom.names b/erts/emulator/beam/atom.names index 7d11f7f956..dc930f2d38 100644 --- a/erts/emulator/beam/atom.names +++ b/erts/emulator/beam/atom.names @@ -278,7 +278,6 @@ atom http httph https http_response http_request http_header http_eoh http_error atom id atom if_clause atom ignore -atom imports atom in atom in_exiting atom inactive diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c index 8b3fc90826..a4e72a130a 100644 --- a/erts/emulator/beam/beam_load.c +++ b/erts/emulator/beam/beam_load.c @@ -5117,7 +5117,6 @@ erts_module_info_0(Process* p, Eterm module) BUILD_INFO(am_md5); BUILD_INFO(am_compile); BUILD_INFO(am_attributes); - BUILD_INFO(am_imports); BUILD_INFO(am_exports); BUILD_INFO(am_module); #undef BUILD_INFO @@ -5129,8 +5128,6 @@ erts_module_info_1(Process* p, Eterm module, Eterm what) { if (what == am_module) { return module; - } else if (what == am_imports) { - return NIL; } else if (what == am_md5) { return md5_of_module(p, module); } else if (what == am_exports) { diff --git a/system/doc/reference_manual/modules.xml b/system/doc/reference_manual/modules.xml index ac778805fe..5fc8b363f8 100644 --- a/system/doc/reference_manual/modules.xml +++ b/system/doc/reference_manual/modules.xml @@ -230,12 +230,8 @@ behaviour_info(callbacks) -> Callbacks.</pre> a list of <c>{Key,Value}</c> tuples with information about the module. Currently, the list contain tuples with the following <c>Key</c>s: <c>module</c>, <c>attributes</c>, <c>compile</c>, - <c>exports</c>, <c>imports</c> and <c>md5</c>. The order and number of tuples + <c>exports</c> and <c>md5</c>. The order and number of tuples may change without prior notice.</p> - - <warning><p>The <c>{imports,Value}</c> tuple may be removed in a future - release because <c>Value</c> is always an empty list. - Do not write code that depends on it being present.</p></warning> </section> <section> @@ -272,12 +268,6 @@ behaviour_info(callbacks) -> Callbacks.</pre> <seealso marker="stdlib:beam_lib#strip/1">beam_lib(3)</seealso>.</p> </item> - <tag><c>imports</c></tag> - <item> - <p>Always return an empty list. The <c>imports</c> key may not - be supported in future release.</p> - </item> - <tag><c>md5</c></tag> <item> <p>Return a binary representing the MD5 checksum of the module.</p> |