global-functions: drop $LogPrintExit2

This commit is contained in:
Christian Hesse 2024-03-18 10:30:32 +01:00
parent 009674b5bc
commit 36cf4d028b

View file

@ -50,7 +50,6 @@
:global IsMacLocallyAdministered;
:global IsTimeSync;
:global LogPrint;
:global LogPrintExit2;
:global LogPrintOnce;
:global MAX;
:global MIN;
@ -744,27 +743,6 @@
}
}
# log and print with same text, optionally exit
# Deprectated! - TODO: remove later
:set LogPrintExit2 do={
:local Severity [ :tostr $1 ];
:local Name [ :tostr $2 ];
:local Message [ :tostr $3 ];
:local Exit [ :tostr $4 ];
:global LogPrint;
:global LogPrintOnce;
$LogPrintOnce warning $0 \
("This function is deprecated and will be removed. Please make your adjustments!");
$LogPrint $1 $2 $3;
:if ($Exit = "true") do={
:error ("Hard error to exit.");
}
}
# log and print, once until reboot
:set LogPrintOnce do={
:local Severity [ :tostr $1 ];