aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-06-17 10:40:23 +0200
committerBjörn Gustavsson <[email protected]>2014-06-17 10:40:23 +0200
commit2ad1bf818447c8a7ff380e93f43a7a6105a77d6f (patch)
tree1b0c248deb087a219e76962a65234343ca0a8c29 /lib
parent43285542322eccebb8f337610b6a48ddc9c87ca3 (diff)
parent708430b92ff48faa5e0c821dfca520968551a71f (diff)
downloadotp-2ad1bf818447c8a7ff380e93f43a7a6105a77d6f.tar.gz
otp-2ad1bf818447c8a7ff380e93f43a7a6105a77d6f.tar.bz2
otp-2ad1bf818447c8a7ff380e93f43a7a6105a77d6f.zip
Merge branch 'bjorn/kernel/remove-file_info-vestiges/OTP-11982' into maint
* bjorn/kernel/remove-file_info-vestiges/OTP-11982: Remove documentation and stub for non-exist file:file_info/1
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/doc/src/file.xml8
-rw-r--r--lib/kernel/src/file.erl10
2 files changed, 1 insertions, 17 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
index 8dae34431b..1c03efe7fd 100644
--- a/lib/kernel/doc/src/file.xml
+++ b/lib/kernel/doc/src/file.xml
@@ -428,14 +428,6 @@
</desc>
</func>
<func>
- <name name="file_info" arity="1"/>
- <fsummary>Get information about a file (deprecated)</fsummary>
- <desc>
- <p>This function is obsolete. Use <c>read_file_info/1,2</c>
- instead.</p>
- </desc>
- </func>
- <func>
<name name="format_error" arity="1"/>
<fsummary>Return a descriptive string for an error reason</fsummary>
<desc>
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl
index 20b703e084..ee2fb85de2 100644
--- a/lib/kernel/src/file.erl
+++ b/lib/kernel/src/file.erl
@@ -117,15 +117,7 @@
| {'time', 'posix'}.
%%% BIFs
--export([file_info/1, native_name_encoding/0]).
-
--spec file_info(Filename) -> {ok, FileInfo} | {error, Reason} when
- Filename :: name_all(),
- FileInfo :: file_info(),
- Reason :: posix() | badarg.
-
-file_info(_) ->
- erlang:nif_error(undef).
+-export([native_name_encoding/0]).
-spec native_name_encoding() -> latin1 | utf8.