From 48bb9a2727d03f196d835bb9bb08277c436e52aa Mon Sep 17 00:00:00 2001
From: Rickard Green
Date: Thu, 6 Apr 2023 15:45:55 +0200
Subject: [PATCH 1/2] [kernel] Remove code:is_module_native/1 and code:rehash/0
---
bootstrap/lib/stdlib/ebin/otp_internal.beam | Bin 6072 -> 6068 bytes
lib/kernel/doc/src/code.xml | 11 ---------
lib/kernel/src/code.erl | 24 ++++----------------
lib/stdlib/src/otp_internal.erl | 8 +++----
4 files changed, 8 insertions(+), 35 deletions(-)
diff --git a/bootstrap/lib/stdlib/ebin/otp_internal.beam b/bootstrap/lib/stdlib/ebin/otp_internal.beam
index 2e50ad0eccac8a32f50ef0e392d038de803bf2ed..b7a34e9bdd4c9c1b6e4e87d72bffc6b13585b33e 100644
GIT binary patch
delta 1622
zcmV-c2C4bDFSIWRMo&^P000-Pu?Y7Mf9(JO7!7!womlH`8$}ehKmrMgpOgZHPScB>
z){SE)P10?lv}sf-APpgio6u@JJGNJzo!QRJIyHq~eGT4#m*mVi>)qK|Uy4*U_U`%4
zIdiVxxY1~g8jZ&8o6)=HA4D{jlweJxapRLrQKayIKIa1lk2*aRbEPSUckjJ8e>*|F
zeZYO^;ktShD>TSB(Xrs@JZ22_DUvi16B>aIgyF5uq|6C5+#XVm2W{MFBKG^ASH?QPvhm`BLe
zmIO5O(7(kHED2vVo1#dNETJ4;Sd`%KY#=1)1USbGftOq85OX93n(|r6r3@1QoX2{E
z)KmpvIAmhj>4Lp2WAFWovK%+A+HzMc9D#Z@!eiR$wtMY)cxOFQM%=tWe*~Nkg^rES
zVJd|dM6e=2fP3KL+BuF0&Z+H^Fy?TU1e?#D-@)!5C3xF~e{SF;PDfA#DvLE$9oNkR
zFM}3hs;`++Dw`+~QD)QOrLgDPx^93nB|(xg9fyj_i77qISf^}peN?Z6>Uaq+{FIP{
zs-FP4?LjUZ$jgjoG+>Yde<$ws`5FZyq4bze!$Hi4RHhP2$Z_m#aNQM&0vyOQ8c?X^
zh&pzb%16|bf8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<;1CGgb+3lr>zieMhRHlY{_Ic)>c%o5&aa1UrRL9F*}HBI`0wKeRVznto%Q5#_Ng&DyY`eNxBs(~#uO$qaKWUWV+|46DcO4F*|Il>
zM@Q%3>GAPdYqM>(!dkTcPuFf@uMl#YY7xx-!1jwZ@R_@l9~CoyYRO1~i9^=DaYY~I
zL#25FEo)}V3l^crr_Y9d+3$hjXW&*-P`t^onR5waH&`28mr^3g~5}~z4cR7E}ef|(ZBuDnOEGs
z_JTJd23?)~_JLo2uB~Vax9`d3BO7zC%!}8vB-Zyq$=%hRR%#H>oB!K|h5fn-LtqBl
zNek1@sgb%hXN8I21eTOL`)ZrmNCUG4`amUIj_h?~6@#vT*7JXO>3?_mgf!)9F3!jh
zCqyuT?*oeM&y9wllo?50z5AeQ$5Zve*YWA`Qp|I2Kpj|rcQM@hA}j;5so1OlO%gfq
zIjQm|Q6*4MJ!QQT>oD0PLX2Zm1!h2T6OJeeQXmn2!2PMYP`>NQUteT*UC^)q?W}0}
z??hDh%g7?pnjb~#ICtqzvL^k>NkwaOMSBzo;3AH6U8T>ZX9UKPzvjxnZ+@!5RE2j!
zO8QIR6D?~bepM{JAM_8~#piDC5ZRHfLK@Ls^Qgw%61-1b`9Ap<2q+N{lkXNn5dOSE
UKujWJT~mp|Acg6lK$Afib7B=7sQ>@~
diff --git a/lib/kernel/doc/src/code.xml b/lib/kernel/doc/src/code.xml
index 2268b4be445f..1bc90f1e8bc0 100644
--- a/lib/kernel/doc/src/code.xml
+++ b/lib/kernel/doc/src/code.xml
@@ -1057,17 +1057,6 @@ rpc:call(Node, code, load_binary, [Module, Filename, Binary]),
returns modified. See also all_loaded/0.
-
-
- Test if a module has native code.
-
- Returns false if the given Module is
- loaded, and undefined if it is not.
- This function is deprecated and will be removed in a future
- release.
-
-
-
The mode of the code server.
diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl
index e89a6a27cefc..13fed657d145 100644
--- a/lib/kernel/src/code.erl
+++ b/lib/kernel/src/code.erl
@@ -67,7 +67,6 @@
del_paths/1,
clear_cache/0,
replace_path/2,replace_path/3,
- rehash/0,
start_link/0,
which/1,
get_doc/1,
@@ -81,8 +80,8 @@
modified_modules/0,
get_mode/0]).
--deprecated({rehash,0,"the code path cache feature has been removed"}).
--deprecated({is_module_native,1,"HiPE has been removed"}).
+-removed({rehash,0,"the code path cache feature has been removed"}).
+-removed({is_module_native,1,"HiPE has been removed"}).
-export_type([load_error_rsn/0, load_ret/0]).
-export_type([prepared_code/0]).
@@ -113,7 +112,7 @@
%%% BIFs
--export([get_chunk/2, is_module_native/1, module_md5/1]).
+-export([get_chunk/2, module_md5/1]).
-spec get_chunk(Bin, Chunk) ->
binary() | undefined when
@@ -137,16 +136,6 @@ get_chunk_1(Beam, Chunk) ->
erlang:raise(error, Reason, [{Mod,get_chunk,L,Loc}|Rest])
end.
--spec is_module_native(Module) -> true | false | undefined when
- Module :: module().
-is_module_native(Module) when is_atom(Module) ->
- case is_loaded(Module) of
- {file, _} -> false;
- false -> undefined
- end;
-is_module_native(Module) ->
- erlang:error(badarg, [Module]).
-
-spec module_md5(binary()) -> binary() | undefined.
module_md5(<<"FOR1", _/bits>>=Beam) ->
@@ -471,11 +460,6 @@ replace_path(Name, Dir, Cache) when (is_atom(Name) orelse is_list(Name)),
(is_atom(Dir) orelse is_list(Dir)), ?is_cache(Cache) ->
call({replace_path,Name,Dir,Cache}).
--spec rehash() -> 'ok'.
-rehash() ->
- cache_warning(),
- ok.
-
-spec get_mode() -> 'embedded' | 'interactive'.
get_mode() -> call(get_mode).
@@ -1203,4 +1187,4 @@ path_files([Path|Tail]) ->
[{Path,Files} | path_files(Tail)];
_Error ->
path_files(Tail)
- end.
\ No newline at end of file
+ end.
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index 9209796a3e99..45b6d633f5d8 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -31,10 +31,6 @@ 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, crypto_dyn_iv_init, 3) ->
{deprecated, "see the documentation for details", "OTP 27"};
obsolete(crypto, crypto_dyn_iv_update, 3) ->
@@ -95,6 +91,10 @@ 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(code, is_module_native, 1) ->
+ {removed, "HiPE has been removed"};
+obsolete(code, rehash, 0) ->
+ {removed, "the code path cache feature has been removed"};
obsolete(core_lib, get_anno, 1) ->
{removed, "use cerl:get_ann/1 instead"};
obsolete(core_lib, is_literal, 1) ->
From 08a69166632074d9ed0e0f5cc9c3bdd3f0dcbc39 Mon Sep 17 00:00:00 2001
From: Rickard Green
Date: Thu, 6 Apr 2023 16:11:10 +0200
Subject: [PATCH 2/2] Remove dead links from old deprecations in OTP 24
---
system/doc/general_info/deprecations_24.inc | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/system/doc/general_info/deprecations_24.inc b/system/doc/general_info/deprecations_24.inc
index d508aca7d3da..3786cd1c6adc 100644
--- a/system/doc/general_info/deprecations_24.inc
+++ b/system/doc/general_info/deprecations_24.inc
@@ -4,20 +4,17 @@
Communication over the Erlang distribution without support for large
node container
data types (version 4) is as of OTP 24 deprecated and is
- scheduled for removal
- in OTP 26. That is, as of OTP 26, support for large
- node container data types will become mandatory.
+ scheduled for removal in OTP 26. That is, as of OTP 26, support for
+ large node container data types will become mandatory.
Old Link Protocol
- The old
- link protocol used when communicating over the Erlang
+ The old link protocol used when communicating over the Erlang
distribution is as of OTP 24 deprecated and support for it is
- scheduled for removal
- in OTP 26. As of OTP 26, the
+ scheduled for removal in OTP 26. As of OTP 26, the
new
link protocol will become mandatory. That is, Erlang nodes
will then refuse to connect to nodes not implementing the new