diff options
author | Björn Gustavsson <[email protected]> | 2014-06-13 12:31:08 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-06-13 12:31:08 +0200 |
commit | 708430b92ff48faa5e0c821dfca520968551a71f (patch) | |
tree | 65f824a72d38e24435a684473d6583efe26b16d3 /lib/kernel | |
parent | c9e36ab16034bb7fe71f772df6bba22070976bbf (diff) | |
download | otp-708430b92ff48faa5e0c821dfca520968551a71f.tar.gz otp-708430b92ff48faa5e0c821dfca520968551a71f.tar.bz2 otp-708430b92ff48faa5e0c821dfca520968551a71f.zip |
Remove documentation and stub for non-exist file:file_info/1
file:file_info/1 was removed a long time ago, but its
documentation was not removed.
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/doc/src/file.xml | 8 | ||||
-rw-r--r-- | lib/kernel/src/file.erl | 10 |
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. |