aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 13:38:07 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commita2f9d28ac231f7209815b743d9a20d266c51a187 (patch)
treecef7bfca6a4992038d0f842c80e506e5be5a6749 /lib
parent3d2fa8b1a083d8eb9f9264982d8accceac37eea5 (diff)
downloadotp-a2f9d28ac231f7209815b743d9a20d266c51a187.tar.gz
otp-a2f9d28ac231f7209815b743d9a20d266c51a187.tar.bz2
otp-a2f9d28ac231f7209815b743d9a20d266c51a187.zip
Remove lib:error_message/2
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/doc/src/lib.xml10
-rw-r--r--lib/stdlib/src/lib.erl12
2 files changed, 1 insertions, 21 deletions
diff --git a/lib/stdlib/doc/src/lib.xml b/lib/stdlib/doc/src/lib.xml
index 243c67c2ad..69dfdbcf50 100644
--- a/lib/stdlib/doc/src/lib.xml
+++ b/lib/stdlib/doc/src/lib.xml
@@ -39,16 +39,6 @@
<funcs>
<func>
- <name name="error_message" arity="2"/>
- <fsummary>Print error message.</fsummary>
- <desc>
- <p>Prints error message <c><anno>Args</anno></c> in accordance with
- <c><anno>Format</anno></c>. Similar to
- <seealso marker="io#format/1"><c>io:format/2</c></seealso>.</p>
- </desc>
- </func>
-
- <func>
<name name="progname" arity="0"/>
<fsummary>Return name of Erlang start script.</fsummary>
<desc>
diff --git a/lib/stdlib/src/lib.erl b/lib/stdlib/src/lib.erl
index e5f5db0a8f..a115836411 100644
--- a/lib/stdlib/src/lib.erl
+++ b/lib/stdlib/src/lib.erl
@@ -19,7 +19,7 @@
%%
-module(lib).
--export([error_message/2, progname/0, eval_str/1]).
+-export([progname/0, eval_str/1]).
-export([extended_parse_exprs/1, extended_parse_term/1,
subst_values_for_vars/2]).
@@ -28,16 +28,6 @@
format_stacktrace/4, format_stacktrace/5,
format_call/4, format_call/5, format_fun/1, format_fun/2]).
-%%
-%% Functions for doing standard system format i/o.
-%%
--spec error_message(Format, Args) -> 'ok' when
- Format :: io:format(),
- Args :: [term()].
-
-error_message(Format, Args) ->
- io:format(<<"** ~ts **\n">>, [io_lib:format(Format, Args)]).
-
%% Return the name of the script that starts (this) erlang
%%
-spec progname() -> atom().