3 Scheduled for Removal
3.1
Introduction
This document list all functionality in Erlang/OTP that currently are scheduled for removal. For more information regarding the strategy regarding removal of functionality see the documentation of Support, Compatibility, Deprecations, and Removal.
3.2
OTP 27
Vanilla Driver
The old previously documented support for opening a port to an external resource by passing an atom (or a string) as first argument to open_port(), implemented by the vanilla driver, will be removed in OTP 27. This functionality was marked as obsolete about two decades ago and then a few years later the documentation for it was removed. If this functionality is not used with care it might hang or crash the runtime system.
Functions Scheduled for Removal in OTP 27
- file:pid2name/1 (this functionality is no longer supported)
- zlib:adler32/2 (use erlang:adler32/1 instead)
- zlib:adler32/3 (use erlang:adler32/2 instead)
- zlib:adler32_combine/4 (use erlang:adler_combine/3 instead)
- zlib:crc32/1 (use erlang:crc32/1 on the uncompressed data instead)
- zlib:crc32/2 (use erlang:crc32/1 instead)
- zlib:crc32/3 (use erlang:crc32/2 instead)
- zlib:crc32_combine/4 (use erlang:crc32_combine/3 instead)
- zlib:getBufSize/1 (this function will be removed in a future release)
- zlib:inflateChunk/1 (use safeInflate/2 instead)
- zlib:inflateChunk/2 (use safeInflate/2 instead)
- zlib:setBufSize/2 (this function will be removed in a future release)
3.3
OTP 26
Functions Scheduled for Removal in OTP 26
- code:is_module_native/1 (HiPE has been removed)
- code:rehash/0 (the code path cache feature has been removed)
- disk_log:accessible_logs/0 (use disk_log:all/0 instead)
- disk_log:lclose/1 (use disk_log:close/1 instead)
- disk_log:lclose/2 (use disk_log:close/1 instead)
- erts_alloc_config:_/_ (this module will be removed in OTP 26.0. See the documentation for details)
- ftp:start_service/1 (use ftp:open/2 instead)
- ftp:stop_service/1 (use ftp:close/1 instead)
- httpd_util:flatlength/1 (use erlang:iolist_size/1 instead)
- httpd_util:hexlist_to_integer/1 (use erlang:list_to_integer/2 with base 16 instead)
- httpd_util:integer_to_hexlist/1 (use erlang:integer_to_list/2 with base 16 instead)
- httpd_util:strip/1 (use string:trim/1 instead)
- httpd_util:suffix/1 (use filename:extension/1 and string:trim/2 instead)
3.4
OTP 25
http_uri
Since OTP 21 the recommended module to handle URIs is uri_string. The module http_uri does not provide a implementation that satisfies the RFC. Formally deprecated since OTP-23.
Functions Scheduled for Removal in OTP 25
- filename:safe_relative_path/1 (use filelib:safe_relative_path/2 instead)
- http_uri:decode/1 (use uri_string:unquote function instead)
- http_uri:encode/1 (use uri_string:quote function instead)
- http_uri:parse/1 (use uri_string functions instead)
- http_uri:parse/2 (use uri_string functions instead)
- http_uri:scheme_defaults/0 (use uri_string functions instead)
- public_key:ssh_decode/2 (use ssh_file:decode/2 instead)
- public_key:ssh_encode/2 (use ssh_file:encode/2 instead)
- public_key:ssh_hostkey_fingerprint/1 (use ssh:hostkey_fingerprint/1 instead)
- public_key:ssh_hostkey_fingerprint/2 (use ssh:hostkey_fingerprint/2 instead)