[latex3-commits] [latex3/latex3] main: Move deprecated fns to l3deprecation (see #1347) (3cf0c5fcb)

github at latex-project.org github at latex-project.org
Sun Nov 26 22:34:05 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/3cf0c5fcb95d766687ed78eae2d6ff3afaedc203

>---------------------------------------------------------------

commit 3cf0c5fcb95d766687ed78eae2d6ff3afaedc203
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Nov 26 21:34:05 2023 +0000

    Move deprecated fns to l3deprecation (see #1347)


>---------------------------------------------------------------

3cf0c5fcb95d766687ed78eae2d6ff3afaedc203
 l3kernel/l3deprecation.dtx | 44 ++++++++++++++++++++++++++++++++++++++++++++
 l3kernel/l3file.dtx        | 15 ---------------
 l3kernel/l3pdf.dtx         | 27 ---------------------------
 3 files changed, 44 insertions(+), 42 deletions(-)

diff --git a/l3kernel/l3deprecation.dtx b/l3kernel/l3deprecation.dtx
index 9525ccd90..51747300b 100644
--- a/l3kernel/l3deprecation.dtx
+++ b/l3kernel/l3deprecation.dtx
@@ -447,6 +447,50 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \subsection{Deprecated \pkg{l3file} functions}
+%
+% \begin{macro}
+%   {
+%     \iow_shipout_x:Nn, \iow_shipout_x:Nx,
+%     \iow_shipout_x:cn, \iow_shipout_x:cx
+%   }
+%   Previously described as \texttt{x}-type, but the hash behaviour is really
+%   \texttt{e}-type.
+%    \begin{macrocode}
+\__kernel_patch_deprecation:nnNNpn { 2023-10-10 } { \iow_shipout_e:Nn }
+\cs_new_protected:Npn \iow_shipout_x:Nn { \iow_shipout_e:Nn }
+\cs_generate_variant:Nn \iow_shipout_x:Nn { Nx , c, cx }
+%    \end{macrocode}
+% \end{macro}
+%
+% \subsection{Deprecated \pkg{l3pdf} functions}
+%
+% \begin{variable}{\g_@@_object_prop}
+%   For tracking objects.
+%    \begin{macrocode}
+\prop_new:N \g_@@_object_prop
+%    \end{macrocode}
+% \end{variable}
+%
+% \begin{macro}{\pdf_object_new:nn, \pdf_object_write:nn, \pdf_object_write:nx}
+%    \begin{macrocode}
+\__kernel_patch_deprecation:nnNNpn { 2022-08-30 } { [\pdf_object_new:n] }
+\cs_new_protected:Npn \pdf_object_new:nn #1#2
+  {
+    \prop_gput:Nnn \g_@@_object_prop {#1} {#2}
+    \@@_backend_object_new:n {#1}
+  }
+\__kernel_patch_deprecation:nnNNpn { 2022-08-30 } { [\pdf_object_write:n] }
+\cs_new_protected:Npn \pdf_object_write:nn #1#2
+  {
+    \exp_args:Nne \@@_backend_object_write:nnn
+      {#1} { \prop_item:Nn \g_@@_object_prop {#1} } {#2}
+    \bool_gset_true:N \g_@@_init_bool
+  }
+\cs_generate_variant:Nn \pdf_object_write:nn { nx }
+%    \end{macrocode}
+% \end{macro}
+%
 % \subsection{Deprecated \pkg{l3prg} functions}
 %
 %    \begin{macrocode}
diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 6af1bc4c0..6bfcd7781 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -2546,21 +2546,6 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \subsection{Deprecated functions}
-%
-% \begin{macro}
-%   {
-%     \iow_shipout_x:Nn, \iow_shipout_x:Nx,
-%     \iow_shipout_x:cn, \iow_shipout_x:cx
-%   }
-%   Previously described as \texttt{x}-type, but the hash behaviour is really
-%   \texttt{e}-type.
-%    \begin{macrocode}
-\cs_new_eq:NN \iow_shipout_x:Nn \iow_shipout_e:Nn
-\cs_generate_variant:Nn \iow_shipout_x:Nn { Nx , c, cx }
-%    \end{macrocode}
-% \end{macro}
-%
 %    \begin{macrocode}
 %<@@=file>
 %    \end{macrocode}
diff --git a/l3kernel/l3pdf.dtx b/l3kernel/l3pdf.dtx
index 3938945f5..87ea52aa3 100644
--- a/l3kernel/l3pdf.dtx
+++ b/l3kernel/l3pdf.dtx
@@ -522,33 +522,6 @@
   }
 %    \end{macrocode}
 %
-% \subsection{Deprecated functions}
-%
-% \begin{variable}{\g_@@_object_prop}
-%   For tracking objects.
-%    \begin{macrocode}
-\prop_new:N \g_@@_object_prop
-%    \end{macrocode}
-% \end{variable}
-%
-% \begin{macro}{\pdf_object_new:nn, \pdf_object_write:nn, \pdf_object_write:nx}
-%   Wrap up the type data in a prop.
-%    \begin{macrocode}
-\cs_new_protected:Npn \pdf_object_new:nn #1#2
-  {
-    \prop_gput:Nnn \g_@@_object_prop {#1} {#2}
-    \@@_backend_object_new:n {#1}
-  }
-\cs_new_protected:Npn \pdf_object_write:nn #1#2
-  {
-    \exp_args:Nne \@@_backend_object_write:nnn
-      {#1} { \prop_item:Nn \g_@@_object_prop {#1} } {#2}
-    \bool_gset_true:N \g_@@_init_bool
-  }
-\cs_generate_variant:Nn \pdf_object_write:nn { nx }
-%    \end{macrocode}
-% \end{macro}
-%
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}





More information about the latex3-commits mailing list.