From e7a3bf9c385ac6df2209c6f7c92543a3dd7f6497 Mon Sep 17 00:00:00 2001 From: Richard Carlsson Date: Tue, 17 Apr 2018 13:28:24 +0200 Subject: Move lib:nonl/1 into yecc.erl --- lib/stdlib/doc/src/lib.xml | 9 --------- lib/stdlib/src/lib.erl | 10 +--------- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'lib/stdlib') 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 @@ -56,15 +56,6 @@ - - - Remove last newline. - -

Removes the last newline character, if any, in - String1.

-
-
- Return name of Erlang start script. 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(). -- cgit v1.2.3