aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-04-17 13:28:24 +0200
committerRichard Carlsson <[email protected]>2018-05-04 10:22:36 +0200
commite7a3bf9c385ac6df2209c6f7c92543a3dd7f6497 (patch)
tree91975afb8062e901666d59dc1ee0dbb3e60b0fe6 /lib/stdlib
parentf7fd8127c18f25bc9678bda067d1503a0bc0e3b2 (diff)
downloadotp-e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497.tar.gz
otp-e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497.tar.bz2
otp-e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497.zip
Move lib:nonl/1 into yecc.erl
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/doc/src/lib.xml9
-rw-r--r--lib/stdlib/src/lib.erl10
2 files changed, 1 insertions, 18 deletions
diff --git a/lib/stdlib/doc/src/lib.xml b/lib/stdlib/doc/src/lib.xml
index 58dad7c9e0..7aabb4bea8 100644
--- a/lib/stdlib/doc/src/lib.xml
+++ b/lib/stdlib/doc/src/lib.xml
@@ -57,15 +57,6 @@
</func>
<func>
- <name name="nonl" arity="1"/>
- <fsummary>Remove last newline.</fsummary>
- <desc>
- <p>Removes the last newline character, if any, in
- <c><anno>String1</anno></c>.</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 51e0c3f77e..72ca7dab0a 100644
--- a/lib/stdlib/src/lib.erl
+++ b/lib/stdlib/src/lib.erl
@@ -19,7 +19,7 @@
%%
-module(lib).
--export([flush_receive/0, error_message/2, progname/0, nonl/1, send/2,
+-export([flush_receive/0, error_message/2, progname/0, send/2,
sendw/2, eval_str/1]).
-export([extended_parse_exprs/1, extended_parse_term/1,
@@ -62,14 +62,6 @@ progname() ->
no_prog_name
end.
--spec nonl(String1) -> String2 when
- String1 :: string(),
- String2 :: string().
-
-nonl([10]) -> [];
-nonl([]) -> [];
-nonl([H|T]) -> [H|nonl(T)].
-
-spec send(To, Msg) -> Msg when
To :: pid() | atom() | {atom(), node()},
Msg :: term().