diff options
author | Björn Gustavsson <[email protected]> | 2010-04-08 11:45:23 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-04-08 11:45:23 +0200 |
commit | 0c2be2222b411b7cb8ddedc5c549ccd54a6a62f8 (patch) | |
tree | ffae151449ec2536da97b01a9fbfd9828fe39567 | |
parent | 6ba7c11891441a0a67d62d4ea278b101d53dbdbf (diff) | |
download | otp-0c2be2222b411b7cb8ddedc5c549ccd54a6a62f8.tar.gz otp-0c2be2222b411b7cb8ddedc5c549ccd54a6a62f8.tar.bz2 otp-0c2be2222b411b7cb8ddedc5c549ccd54a6a62f8.zip |
Remove deprecated lists:flat_length/1
Remove lists:flat_length/1 which has never been documented or
supported. It has been deprecated since R13A.
-rw-r--r-- | lib/stdlib/src/lists.erl | 11 | ||||
-rw-r--r-- | lib/stdlib/src/otp_internal.erl | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/lib/stdlib/src/lists.erl b/lib/stdlib/src/lists.erl index e1f8d1c200..ff2aac4a5c 100644 --- a/lib/stdlib/src/lists.erl +++ b/lib/stdlib/src/lists.erl @@ -25,7 +25,7 @@ unzip/1, unzip3/1, zip/2, zip3/3, zipwith/3, zipwith3/4, sort/1, merge/1, merge/2, rmerge/2, merge3/3, rmerge3/3, usort/1, umerge/1, umerge3/3, umerge/2, rumerge3/3, rumerge/2, - concat/1, flatten/1, flatten/2, flat_length/1, flatlength/1, + concat/1, flatten/1, flatten/2, flatlength/1, keydelete/3, keyreplace/4, keytake/3, keystore/4, keysort/2, keymerge/3, rkeymerge/3, rukeymerge/3, ukeysort/2, ukeymerge/3, keymap/3]). @@ -40,8 +40,6 @@ mapfoldl/3,mapfoldr/3,foreach/2,takewhile/2,dropwhile/2,splitwith/2, split/2]). --deprecated([flat_length/1]). - %% member(X, L) -> (true | false) %% test if X is a member of the list L %% Now a BIF! @@ -436,13 +434,6 @@ do_flatten([H|T], Tail) -> do_flatten([], Tail) -> Tail. -%% flat_length(List) (undocumented can be removed later) -%% Calculate the length of a list of lists. - --spec flat_length([_]) -> non_neg_integer(). - -flat_length(List) -> flatlength(List). - %% flatlength(List) %% Calculate the length of a list of lists. diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl index 7ea7de8d58..121334ddf8 100644 --- a/lib/stdlib/src/otp_internal.erl +++ b/lib/stdlib/src/otp_internal.erl @@ -322,7 +322,7 @@ obsolete_1(regexp, _, _) -> {deprecated, "the regexp module is deprecated (will be removed in R15A); use the re module instead"}; obsolete_1(lists, flat_length, 1) -> - {deprecated,{lists,flatlength,1},"R14"}; + {removed,{lists,flatlength,1},"R14"}; obsolete_1(ssh_sftp, connect, A) when 1 =< A, A =< 3 -> {deprecated,{ssh_sftp,start_channel,A},"R14B"}; |