summaryrefslogtreecommitdiff
path: root/lib/stdlib/src/otp_internal.erl
blob: 56f05a003e90ca33d529d0be2ff91806f3287474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
%%
%% WARNING: DO NOT EDIT THIS FILE.
%%
%% This file was auto-generated from attributes in the source
%% code.
%%
%% To add a description to a deprecation or removal attribute,
%% write a string after the arity:
%%
%%    -deprecated([{foo,1,"use bar/1 instead"}]).
%%    -deprecated_type([{gadget,1,"use widget/1 instead"}]).
%%    -removed([{hello,2,"use there/2 instead"}]).
%%    -removed_type([{frobnitz,1,"use grunka/1 instead"}]).
%%
%% Descriptions cannot be given with the `f/1` shorthand, and
%% it will fall back to a generic description referring the
%% user to the documentation.
%%
%% Use `./otp_build update_deprecations` to update this file
%% after adding an attribute.
%%
-module(otp_internal).
-include("otp_internal.hrl").
%%
-dialyzer({no_match, obsolete/3}).
obsolete(auth, cookie, 0) ->
    {deprecated, "use erlang:get_cookie/0 instead"};
obsolete(auth, cookie, 1) ->
    {deprecated, "use erlang:set_cookie/2 instead"};
obsolete(auth, is_auth, 1) ->
    {deprecated, "use net_adm:ping/1 instead"};
obsolete(calendar, local_time_to_universal_time, 1) ->
    {deprecated, "use calendar:local_time_to_universal_time_dst/1 instead"};
obsolete(code, is_module_native, 1) ->
    {deprecated, "HiPE has been removed", "OTP 26"};
obsolete(code, rehash, 0) ->
    {deprecated, "the code path cache feature has been removed", "OTP 26"};
obsolete(crypto, rand_uniform, 2) ->
    {deprecated, "use rand:uniform/1 instead"};
obsolete(disk_log, accessible_logs, 0) ->
    {deprecated, "use disk_log:all/0 instead", "OTP 26"};
obsolete(disk_log, lclose, 1) ->
    {deprecated, "use disk_log:close/1 instead", "OTP 26"};
obsolete(disk_log, lclose, 2) ->
    {deprecated, "use disk_log:close/1 instead", "OTP 26"};
obsolete(erl_tidy, dir, 0) ->
    {deprecated, "use https://github.com/richcarl/erl_tidy", "OTP 24"};
obsolete(erl_tidy, dir, 1) ->
    {deprecated, "use https://github.com/richcarl/erl_tidy", "OTP 24"};
obsolete(erl_tidy, file, 1) ->
    {deprecated, "use https://github.com/richcarl/erl_tidy", "OTP 24"};
obsolete(erl_tidy, module, 1) ->
    {deprecated, "use https://github.com/richcarl/erl_tidy", "OTP 24"};
obsolete(erl_tidy, module, 2) ->
    {deprecated, "use https://github.com/richcarl/erl_tidy", "OTP 24"};
obsolete(erlang, now, 0) ->
    {deprecated, "see the \"Time and Time Correction in Erlang\" chapter of the ERTS User's Guide for more information"};
obsolete(erlang, phash, 2) ->
    {deprecated, "use erlang:phash2/2 instead"};
obsolete(filename, safe_relative_path, 1) ->
    {deprecated, "use filelib:safe_relative_path/2 instead", "OTP 25"};
obsolete(http_uri, decode, 1) ->
    {deprecated, "use uri_string functions instead", "OTP 25"};
obsolete(http_uri, encode, 1) ->
    {deprecated, "use uri_string functions instead", "OTP 25"};
obsolete(http_uri, parse, 1) ->
    {deprecated, "use uri_string functions instead", "OTP 25"};
obsolete(http_uri, parse, 2) ->
    {deprecated, "use uri_string functions instead", "OTP 25"};
obsolete(http_uri, scheme_defaults, 0) ->
    {deprecated, "use uri_string functions instead", "OTP 25"};
obsolete(httpd, parse_query, 1) ->
    {deprecated, "use uri_string:dissect_query/1 instead"};
obsolete(httpd_util, flatlength, 1) ->
    {deprecated, "use erlang:iolist_size/1 instead", "OTP 26"};
obsolete(httpd_util, hexlist_to_integer, 1) ->
    {deprecated, "use erlang:list_to_integer/2 with base 16 instead", "OTP 26"};
obsolete(httpd_util, integer_to_hexlist, 1) ->
    {deprecated, "use erlang:integer_to_list/2 with base 16 instead", "OTP 26"};
obsolete(httpd_util, strip, 1) ->
    {deprecated, "use string:trim/1 instead", "OTP 26"};
obsolete(httpd_util, suffix, 1) ->
    {deprecated, "use filename:extension/1 and string:trim/2 instead", "OTP 26"};
obsolete(net, broadcast, 3) ->
    {deprecated, "use rpc:eval_everywhere/3 instead"};
obsolete(net, call, 4) ->
    {deprecated, "use rpc:call/4 instead"};
obsolete(net, cast, 4) ->
    {deprecated, "use rpc:cast/4 instead"};
obsolete(net, ping, 1) ->
    {deprecated, "use net_adm:ping/1 instead"};
obsolete(net, relay, 1) ->
    {deprecated, "use slave:relay/1 instead"};
obsolete(net, sleep, 1) ->
    {deprecated, "use 'receive after T -> ok end' instead"};
obsolete(queue, lait, 1) ->
    {deprecated, "use queue:liat/1 instead"};
obsolete(snmp, add_agent_caps, 2) ->
    {deprecated, "use snmpa:add_agent_caps/2 instead.", "OTP 24"};
obsolete(snmp, c, 1) ->
    {deprecated, "use snmpc:compile/1 instead.", "OTP 24"};
obsolete(snmp, c, 2) ->
    {deprecated, "use snmpc:compile/2 instead.", "OTP 24"};
obsolete(snmp, change_log_size, 1) ->
    {deprecated, "use snmpa:change_log_size/1 instead.", "OTP 24"};
obsolete(snmp, compile, 3) ->
    {deprecated, "use snmpc:compile/3 instead.", "OTP 24"};
obsolete(snmp, current_address, 0) ->
    {deprecated, "use snmpa:current_address/0 instead.", "OTP 24"};
obsolete(snmp, current_community, 0) ->
    {deprecated, "use snmpa:current_community/0 instead.", "OTP 24"};
obsolete(snmp, current_context, 0) ->
    {deprecated, "use snmpa:current_context/0 instead.", "OTP 24"};
obsolete(snmp, current_net_if_data, 0) ->
    {deprecated, "use snmpa:current_net_if_data/0 instead.", "OTP 24"};
obsolete(snmp, current_request_id, 0) ->
    {deprecated, "use snmpa:current_request_id/0 instead.", "OTP 24"};
obsolete(snmp, del_agent_caps, 1) ->
    {deprecated, "use snmpa:del_agent_caps/1 instead.", "OTP 24"};
obsolete(snmp, dump_mibs, 0) ->
    {deprecated, "use snmpa:dump_mibs/0 instead.", "OTP 24"};
obsolete(snmp, dump_mibs, 1) ->
    {deprecated, "use snmpa:dump_mibs/1 instead.", "OTP 24"};
obsolete(snmp, enum_to_int, 2) ->
    {deprecated, "use snmpa:enum_to_int/2 instead.", "OTP 24"};
obsolete(snmp, enum_to_int, 3) ->
    {deprecated, "use snmpa:enum_to_int/3 instead.", "OTP 24"};
obsolete(snmp, get, 2) ->
    {deprecated, "use snmpa:get/2 instead.", "OTP 24"};
obsolete(snmp, get_agent_caps, 0) ->
    {deprecated, "use snmpa:get_agent_caps/0 instead.", "OTP 24"};
obsolete(snmp, get_symbolic_store_db, 0) ->
    {deprecated, "use snmpa:get_symbolic_store_db/0 instead.", "OTP 24"};
obsolete(snmp, info, 1) ->
    {deprecated, "use snmpa:info/1 instead.", "OTP 24"};
obsolete(snmp, int_to_enum, 2) ->
    {deprecated, "use snmpa:int_to_enum/2 instead.", "OTP 24"};
obsolete(snmp, int_to_enum, 3) ->
    {deprecated, "use snmpa:int_to_enum/3 instead.", "OTP 24"};
obsolete(snmp, is_consistent, 1) ->
    {deprecated, "use snmpc:is_consistent/1 instead.", "OTP 24"};
obsolete(snmp, load_mibs, 2) ->
    {deprecated, "use snmpa:load_mibs/2 instead.", "OTP 24"};
obsolete(snmp, log_to_txt, 2) ->
    {deprecated, "use snmpa:log_to_txt/2 instead.", "OTP 24"};
obsolete(snmp, log_to_txt, 3) ->
    {deprecated, "use snmpa:log_to_txt/3 instead.", "OTP 24"};
obsolete(snmp, log_to_txt, 4) ->
    {deprecated, "use snmpa:log_to_txt/4 instead.", "OTP 24"};
obsolete(snmp, mib_to_hrl, 1) ->
    {deprecated, "use snmpc:mib_to_hrl/1 instead.", "OTP 24"};
obsolete(snmp, name_to_oid, 1) ->
    {deprecated, "use snmpa:name_to_oid/1 instead.", "OTP 24"};
obsolete(snmp, name_to_oid, 2) ->
    {deprecated, "use snmpa:name_to_oid/2 instead.", "OTP 24"};
obsolete(snmp, oid_to_name, 1) ->
    {deprecated, "use snmpa:oid_to_name/1 instead.", "OTP 24"};
obsolete(snmp, oid_to_name, 2) ->
    {deprecated, "use snmpa:oid_to_name/2 instead.", "OTP 24"};
obsolete(snmp, register_subagent, 3) ->
    {deprecated, "use snmpa:register_subagent/3 instead.", "OTP 24"};
obsolete(snmp, send_notification, 3) ->
    {deprecated, "use snmpa:send_notification/3 instead.", "OTP 24"};
obsolete(snmp, send_notification, 4) ->
    {deprecated, "use snmpa:send_notification/4 instead.", "OTP 24"};
obsolete(snmp, send_notification, 5) ->
    {deprecated, "use snmpa:send_notification/5 instead.", "OTP 24"};
obsolete(snmp, send_notification, 6) ->
    {deprecated, "use snmpa:send_notification/6 instead.", "OTP 24"};
obsolete(snmp, send_trap, 3) ->
    {deprecated, "use snmpa:send_trap/3 instead.", "OTP 24"};
obsolete(snmp, send_trap, 4) ->
    {deprecated, "use snmpa:send_trap/4 instead.", "OTP 24"};
obsolete(snmp, unload_mibs, 2) ->
    {deprecated, "use snmpa:unload_mibs/2 instead.", "OTP 24"};
obsolete(snmp, unregister_subagent, 2) ->
    {deprecated, "use snmpa:unregister_subagent/2 instead.", "OTP 24"};
obsolete(snmpa, old_info_format, 1) ->
    {deprecated, "use \"new\" format instead", "OTP 24"};
obsolete(snmpm, async_get, 3) ->
    {deprecated, "use snmpm:async_get2/3 instead.", "OTP 25"};
obsolete(snmpm, async_get, 4) ->
    {deprecated, "use snmpm:async_get2/4 instead.", "OTP 25"};
obsolete(snmpm, async_get, 5) ->
    {deprecated, "use snmpm:async_get2/4 instead.", "OTP 25"};
obsolete(snmpm, async_get, 6) ->
    {deprecated, "use snmpm:async_get2/4 instead.", "OTP 25"};
obsolete(snmpm, async_get_bulk, 5) ->
    {deprecated, "use snmpm:async_get_bulk2/5 instead.", "OTP 25"};
obsolete(snmpm, async_get_bulk, 6) ->
    {deprecated, "use snmpm:async_get_bulk2/6 instead.", "OTP 25"};
obsolete(snmpm, async_get_bulk, 7) ->
    {deprecated, "use snmpm:async_get_bulk2/6 instead.", "OTP 25"};
obsolete(snmpm, async_get_bulk, 8) ->
    {deprecated, "use snmpm:async_get_bulk2/6 instead.", "OTP 25"};
obsolete(snmpm, async_get_next, 3) ->
    {deprecated, "use snmpm:async_get_next2/3 instead.", "OTP 25"};
obsolete(snmpm, async_get_next, 4) ->
    {deprecated, "use snmpm:async_get_next2/4 instead.", "OTP 25"};
obsolete(snmpm, async_get_next, 5) ->
    {deprecated, "use snmpm:async_get_next2/4 instead.", "OTP 25"};
obsolete(snmpm, async_get_next, 6) ->
    {deprecated, "use snmpm:async_get_next2/4 instead.", "OTP 25"};
obsolete(snmpm, async_set, 3) ->
    {deprecated, "use snmpm:async_set2/3 instead.", "OTP 25"};
obsolete(snmpm, async_set, 4) ->
    {deprecated, "use snmpm:async_set2/4 instead.", "OTP 25"};
obsolete(snmpm, async_set, 5) ->
    {deprecated, "use snmpm:async_set2/4 instead.", "OTP 25"};
obsolete(snmpm, async_set, 6) ->
    {deprecated, "use snmpm:async_set2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_get, 3) ->
    {deprecated, "use snmpm:sync_get2/3 instead.", "OTP 25"};
obsolete(snmpm, sync_get, 4) ->
    {deprecated, "use snmpm:sync_get2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_get, 5) ->
    {deprecated, "use snmpm:sync_get2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_get, 6) ->
    {deprecated, "use snmpm:sync_get2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_get_bulk, 5) ->
    {deprecated, "use snmpm:sync_get_bulk2/5 instead.", "OTP 25"};
obsolete(snmpm, sync_get_bulk, 6) ->
    {deprecated, "use snmpm:sync_get_bulk2/6 instead.", "OTP 25"};
obsolete(snmpm, sync_get_bulk, 7) ->
    {deprecated, "use snmpm:sync_get_bulk2/6 instead.", "OTP 25"};
obsolete(snmpm, sync_get_bulk, 8) ->
    {deprecated, "use snmpm:sync_get_bulk2/6 instead.", "OTP 25"};
obsolete(snmpm, sync_get_next, 3) ->
    {deprecated, "use snmpm:sync_get_next2/3 instead.", "OTP 25"};
obsolete(snmpm, sync_get_next, 4) ->
    {deprecated, "use snmpm:sync_get_next2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_get_next, 5) ->
    {deprecated, "use snmpm:sync_get_next2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_get_next, 6) ->
    {deprecated, "use snmpm:sync_get_next2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_set, 3) ->
    {deprecated, "use snmpm:sync_set2/3 instead.", "OTP 25"};
obsolete(snmpm, sync_set, 4) ->
    {deprecated, "use snmpm:sync_set2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_set, 5) ->
    {deprecated, "use snmpm:sync_set2/4 instead.", "OTP 25"};
obsolete(snmpm, sync_set, 6) ->
    {deprecated, "use snmpm:sync_set2/4 instead.", "OTP 25"};
obsolete(ssl, cipher_suites, 0) ->
    {deprecated, "use cipher_suites/2,3 instead", "OTP 24"};
obsolete(ssl, cipher_suites, 1) ->
    {deprecated, "use cipher_suites/2,3 instead", "OTP 24"};
obsolete(sys, get_debug, 3) ->
    {deprecated, "incorrectly documented and only for internal use. Can often be replaced with sys:get_log/1"};
obsolete(wxCalendarCtrl, enableYearChange, 1) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxCalendarCtrl, enableYearChange, 2) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxClientDC, new, 0) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxCursor, new, 3) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxCursor, new, 4) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxDC, computeScaleAndOrigin, 1) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxGraphicsRenderer, createLinearGradientBrush, 7) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxGraphicsRenderer, createRadialGradientBrush, 8) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxGridCellEditor, endEdit, 4) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxGridCellEditor, paintBackground, 3) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxIdleEvent, canSend, 1) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxMDIClientWindow, new, 1) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxMDIClientWindow, new, 2) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxPaintDC, new, 0) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxPostScriptDC, getResolution, 0) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxPostScriptDC, setResolution, 1) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(wxWindowDC, new, 0) ->
    {deprecated, "not available in wxWidgets-2.9 and later"};
obsolete(zlib, adler32, 2) ->
    {deprecated, "use erlang:adler32/1 instead", "OTP 27"};
obsolete(zlib, adler32, 3) ->
    {deprecated, "use erlang:adler32/2 instead", "OTP 27"};
obsolete(zlib, adler32_combine, 4) ->
    {deprecated, "use erlang:adler_combine/3 instead", "OTP 27"};
obsolete(zlib, crc32, 1) ->
    {deprecated, "use erlang:crc32/1 on the uncompressed data instead", "OTP 27"};
obsolete(zlib, crc32, 2) ->
    {deprecated, "use erlang:crc32/1 instead", "OTP 27"};
obsolete(zlib, crc32, 3) ->
    {deprecated, "use erlang:crc32/2 instead", "OTP 27"};
obsolete(zlib, crc32_combine, 4) ->
    {deprecated, "use erlang:crc32_combine/3 instead", "OTP 27"};
obsolete(zlib, getBufSize, 1) ->
    {deprecated, "this function will be removed in a future release", "OTP 27"};
obsolete(zlib, inflateChunk, 1) ->
    {deprecated, "use safeInflate/2 instead", "OTP 27"};
obsolete(zlib, inflateChunk, 2) ->
    {deprecated, "use safeInflate/2 instead", "OTP 27"};
obsolete(zlib, setBufSize, 2) ->
    {deprecated, "this function will be removed in a future release", "OTP 27"};
obsolete(core_lib, get_anno, 1) ->
    {removed, "use cerl:get_ann/1 instead"};
obsolete(core_lib, is_literal, 1) ->
    {removed, "use cerl:is_literal/1 instead"};
obsolete(core_lib, is_literal_list, 1) ->
    {removed, "use cerl:is_literal_list/1 instead"};
obsolete(core_lib, literal_value, 1) ->
    {removed, "use cerl:concrete/1 instead"};
obsolete(core_lib, set_anno, 2) ->
    {removed, "use cerl:set_ann/2 instead"};
obsolete(crypto, block_decrypt, 3) ->
    {removed, "use crypto:crypto_one_time/4 or crypto:crypto_init/3 + crypto:crypto_update/2 + crypto:crypto_final/1 instead"};
obsolete(crypto, block_decrypt, 4) ->
    {removed, "use crypto:crypto_one_time/5, crypto:crypto_one_time_aead/6,7 or crypto:crypto_(dyn_iv)?_init + crypto:crypto_(dyn_iv)?_update + crypto:crypto_final instead"};
obsolete(crypto, block_encrypt, 3) ->
    {removed, "use crypto:crypto_one_time/4 or crypto:crypto_init/3 + crypto:crypto_update/2 + crypto:crypto_final/1 instead"};
obsolete(crypto, block_encrypt, 4) ->
    {removed, "use crypto:crypto_one_time/5, crypto:crypto_one_time_aead/6,7 or crypto:crypto_(dyn_iv)?_init + crypto:crypto_(dyn_iv)?_update + crypto:crypto_final instead"};
obsolete(crypto, cmac, 3) ->
    {removed, "use crypto:mac/4 instead"};
obsolete(crypto, cmac, 4) ->
    {removed, "use crypto:macN/5 instead"};
obsolete(crypto, hmac, 3) ->
    {removed, "use crypto:mac/4 instead"};
obsolete(crypto, hmac, 4) ->
    {removed, "use crypto:macN/5 instead"};
obsolete(crypto, hmac_final, 1) ->
    {removed, "use crypto:mac_final/1 instead"};
obsolete(crypto, hmac_final_n, 2) ->
    {removed, "use crypto:mac_finalN/2 instead"};
obsolete(crypto, hmac_init, 2) ->
    {removed, "use crypto:mac_init/3 instead"};
obsolete(crypto, hmac_update, 2) ->
    {removed, "use crypto:mac_update/2 instead"};
obsolete(crypto, poly1305, 2) ->
    {removed, "use crypto:mac/3 instead"};
obsolete(crypto, stream_decrypt, 2) ->
    {removed, "use crypto:crypto_update/2 instead"};
obsolete(crypto, stream_encrypt, 2) ->
    {removed, "use crypto:crypto_update/2 instead"};
obsolete(erl_lint, modify_line, 2) ->
    {removed, "use erl_parse:map_anno/2 instead"};
obsolete(erl_parse, get_attribute, 2) ->
    {removed, "erl_anno:{column,line,location,text}/1 instead"};
obsolete(erl_parse, get_attributes, 1) ->
    {removed, "erl_anno:{column,line,location,text}/1 instead"};
obsolete(erl_parse, set_line, 2) ->
    {removed, "use erl_anno:set_line/2"};
obsolete(erl_scan, set_attribute, 3) ->
    {removed, "use erl_anno:set_line/2 instead"};
obsolete(erlang, get_stacktrace, 0) ->
    {removed, "use the new try/catch syntax for retrieving the stack backtrace"};
obsolete(erlang, hash, 2) ->
    {removed, "use erlang:phash2/2 instead"};
obsolete(httpd_conf, check_enum, 2) ->
    {removed, "use lists:member/2 instead"};
obsolete(httpd_conf, clean, 1) ->
    {removed, "use sting:strip/1 instead or possibly the re module"};
obsolete(httpd_conf, custom_clean, 3) ->
    {removed, "use sting:strip/1 instead or possibly the re module"};
obsolete(httpd_conf, is_directory, 1) ->
    {removed, "use filelib:is_dir/1 instead"};
obsolete(httpd_conf, is_file, 1) ->
    {removed, "use filelib:is_file/1 instead"};
obsolete(httpd_conf, make_integer, 1) ->
    {removed, "use erlang:list_to_integer/1 instead"};
obsolete(rpc, safe_multi_server_call, 2) ->
    {removed, "use rpc:multi_server_call/2 instead"};
obsolete(rpc, safe_multi_server_call, 3) ->
    {removed, "use rpc:multi_server_call/3 instead"};
obsolete(ssl, connection_info, 1) ->
    {removed, "use ssl:connection_information/[1,2] instead"};
obsolete(ssl, negotiated_next_protocol, 1) ->
    {removed, "use ssl:negotiated_protocol/1 instead"};
obsolete(auth, node_cookie, _) ->
    {deprecated, "use erlang:set_cookie/2 and net_adm:ping/1 instead"};
obsolete(ssl, ssl_accept, _) ->
    {deprecated, "use ssl_handshake/1,2,3 instead", "OTP 24"};
obsolete(asn1ct, decode, _) ->
    {removed, "use Mod:decode/2 instead"};
obsolete(asn1ct, encode, _) ->
    {removed, "use Mod:encode/2 instead"};
obsolete(crypto, next_iv, _) ->
    {removed, "see the 'New and Old API' chapter of the CRYPTO User's guide"};
obsolete(crypto, stream_init, _) ->
    {removed, "use crypto:crypto_init/3 + crypto:crypto_update/2 + crypto:crypto_final/1 or crypto:crypto_one_time/4 instead"};
obsolete(erl_scan, attributes_info, _) ->
    {removed, "use erl_anno:{column,line,location,text}/1 instead"};
obsolete(erl_scan, token_info, _) ->
    {removed, "use erl_scan:{category,column,line,location,symbol,text}/1 instead"};
obsolete(filename, find_src, _) ->
    {removed, "use filelib:find_source/1,3 instead"};
obsolete(gen_fsm, _, _) ->
    {deprecated, "use the 'gen_statem' module instead"};
obsolete(igor, _, _) ->
    {deprecated, "use https://github.com/richcarl/igor", "OTP 24"};
obsolete(pg2, _, _) ->
    {deprecated, "use 'pg' instead", "OTP 24"};
obsolete(random, _, _) ->
    {deprecated, "use the 'rand' module instead"};
obsolete(os_mon_mib, _, _) ->
    {removed, "this module was removed in OTP 22.0"};
obsolete(_,_,_) -> no.

-dialyzer({no_match, obsolete_type/3}).
obsolete_type(crypto, hmac_state, 0) ->
    {removed, "see the 'New and Old API' chapter of the CRYPTO User's guide"};
obsolete_type(crypto, retired_cbc_cipher_aliases, 0) ->
    {removed, "Use aes_*_cbc or des_ede3_cbc"};
obsolete_type(crypto, retired_cfb_cipher_aliases, 0) ->
    {removed, "Use aes_*_cfb8, aes_*_cfb128 or des_ede3_cfb"};
obsolete_type(crypto, retired_ctr_cipher_aliases, 0) ->
    {removed, "Use aes_*_ctr"};
obsolete_type(crypto, retired_ecb_cipher_aliases, 0) ->
    {removed, "Use aes_*_ecb"};
obsolete_type(crypto, stream_state, 0) ->
    {removed, "see the 'New and Old API' chapter of the CRYPTO User's guide"};
obsolete_type(erl_scan, column, 0) ->
    {removed, "use erl_anno:column() instead"};
obsolete_type(erl_scan, line, 0) ->
    {removed, "use erl_anno:line() instead"};
obsolete_type(erl_scan, location, 0) ->
    {removed, "use erl_anno:location() instead"};
obsolete_type(_,_,_) -> no.