diff options
author | Björn Gustavsson <[email protected]> | 2016-06-09 14:46:32 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-10 14:37:32 +0200 |
commit | 94e5eb708ee55a13b981dbb5b821a39832e2aa7c (patch) | |
tree | ea00eb76ba414a3a6bede9bfb5bae94768588bfb /lib/stdlib/src | |
parent | 75e5cdabbcaaa12f043225ca8d361055a9d47b24 (diff) | |
download | otp-94e5eb708ee55a13b981dbb5b821a39832e2aa7c.tar.gz otp-94e5eb708ee55a13b981dbb5b821a39832e2aa7c.tar.bz2 otp-94e5eb708ee55a13b981dbb5b821a39832e2aa7c.zip |
Deprecate queue:lait/1
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/otp_internal.erl | 2 | ||||
-rw-r--r-- | lib/stdlib/src/queue.erl | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl index c3ad261daa..3bd338071b 100644 --- a/lib/stdlib/src/otp_internal.erl +++ b/lib/stdlib/src/otp_internal.erl @@ -541,6 +541,8 @@ obsolete_1(random, _, _) -> "use the 'rand' module instead"}; obsolete_1(code, rehash, 0) -> {deprecated, "deprecated because the code path cache feature has been removed"}; +obsolete_1(queue, lait, 1) -> + {deprecated, {queue,liat,1}}; %% Removed in OTP 19. diff --git a/lib/stdlib/src/queue.erl b/lib/stdlib/src/queue.erl index d4d1904886..11c0aa8d2b 100644 --- a/lib/stdlib/src/queue.erl +++ b/lib/stdlib/src/queue.erl @@ -31,10 +31,14 @@ %% Okasaki API from klacke -export([cons/2,head/1,tail/1, - snoc/2,last/1,daeh/1,init/1,liat/1,lait/1]). + snoc/2,last/1,daeh/1,init/1,liat/1]). -export_type([queue/0, queue/1]). +%% Mis-spelled, deprecated. +-export([lait/1]). +-deprecated([lait/1]). + %%-------------------------------------------------------------------------- %% Efficient implementation of double ended fifo queues %% |