diff options
author | Björn Gustavsson <[email protected]> | 2016-06-13 08:16:33 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-13 08:16:33 +0200 |
commit | 51ae2f7df60ea1ef67ada3a24e964fc2b7a65ae3 (patch) | |
tree | f4ee51cb0f603505b67f2d188a863df5feee1f82 /lib | |
parent | c2861de76ca39217a0cf4fc284f8eeaf3f7d2477 (diff) | |
parent | 94e5eb708ee55a13b981dbb5b821a39832e2aa7c (diff) | |
download | otp-51ae2f7df60ea1ef67ada3a24e964fc2b7a65ae3.tar.gz otp-51ae2f7df60ea1ef67ada3a24e964fc2b7a65ae3.tar.bz2 otp-51ae2f7df60ea1ef67ada3a24e964fc2b7a65ae3.zip |
Merge branch 'bjorn/stdlib/deprecate-queue-lait/OTP-13658'
* bjorn/stdlib/deprecate-queue-lait/OTP-13658:
Deprecate queue:lait/1
Diffstat (limited to 'lib')
-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 %% |