[latex3-commits] [git/LaTeX3-latex3-latex3] main: Drop unused backend code (0c2ad2d5c)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Feb 17 12:50:07 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/0c2ad2d5c123d610abd9e09a6926cb17bb4f4e2e

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

commit 0c2ad2d5c123d610abd9e09a6926cb17bb4f4e2e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Feb 17 11:46:13 2023 +0000

    Drop unused backend code
    
    We no longer use the 2e colour:
    the next step is actually to go the other way!


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

0c2ad2d5c123d610abd9e09a6926cb17bb4f4e2e
 l3backend/l3backend-color.dtx           | 79 ---------------------------------
 l3kernel/testfiles/m3expl001.luatex.tlg |  2 -
 l3kernel/testfiles/m3expl001.ptex.tlg   |  2 -
 l3kernel/testfiles/m3expl001.tlg        |  2 -
 l3kernel/testfiles/m3expl001.uptex.tlg  |  2 -
 l3kernel/testfiles/m3expl001.xetex.tlg  |  2 -
 l3kernel/testfiles/m3expl003.luatex.tlg |  2 -
 l3kernel/testfiles/m3expl003.ptex.tlg   |  2 -
 l3kernel/testfiles/m3expl003.tlg        |  2 -
 l3kernel/testfiles/m3expl003.uptex.tlg  |  2 -
 l3kernel/testfiles/m3expl003.xetex.tlg  |  2 -
 11 files changed, 99 deletions(-)

diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index 789789798..03d234feb 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -68,85 +68,6 @@
 % \texttt{dvipdfmx}/\XeTeX{} is PDF-based means it (largely) sticks closer to
 % direct PDF output.
 %
-% \subsection{Collecting information from \LaTeXe{}}
-%
-% \subsubsection{\texttt{dvips}-style}
-%
-%    \begin{macrocode}
-%<*dvisvgm|dvipdfmx|dvips|xetex>
-%    \end{macrocode}
-%
-% \begin{macro}{\@@_backend_pickup:N}
-% \begin{macro}{\@@_backend_pickup:w}
-%   Allow for \LaTeXe{} color. Here, the possible input values are limited:
-%   \texttt{dvips}-style colors can be taken as-is. The \texttt{x}-type expansion
-%   is there to cover the case where \pkg{xcolor} is in use.
-%    \begin{macrocode}
-\cs_new_protected:Npn \@@_backend_pickup:N #1
-  {
-    \exp_args:NV \tl_if_head_is_space:nTF \current at color
-      {
-        \tl_set:Nn #1 { { gray } { 0 } }
-        \msg_warning:nnx { color } { unhandled }
-          { \current at color }
-      }
-      {
-        \exp_last_unbraced:Nx \@@_backend_pickup:w
-          { \current at color } \s_@@_stop #1
-      }
-  }
-\cs_new_protected:Npn \@@_backend_pickup:w #1 ~ #2 \s_@@_stop #3
-  { \tl_set:Nn #3 { {#1} {#2} } }
-%    \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-%    \begin{macrocode}
-%</dvisvgm|dvipdfmx|dvips|xetex>
-%    \end{macrocode}
-%
-% \subsubsection{\LuaTeX{} and \pdfTeX{}}
-%
-%    \begin{macrocode}
-%<*luatex|pdftex>
-%    \end{macrocode}
-%
-% \begin{macro}{\@@_backend_pickup:N}
-% \begin{macro}{\@@_backend_pickup:w}
-%  Same ideas, but with a different backend-dependent format.
-%    \begin{macrocode}
-\cs_new_protected:Npn \@@_backend_pickup:N #1
-  {
-    \exp_last_unbraced:Nx \@@_backend_pickup:w
-      { \current at color } ~ 0 ~ 0 ~ 0 \s_@@_stop #1
-  }
-\cs_new_protected:Npn \@@_backend_pickup:w
-  #1 ~ #2 ~ #3 ~ #4 ~ #5 ~ #6 \s_@@_stop #7
-  {
-    \str_if_eq:nnTF {#2} { g }
-      { \tl_set:Nn #7 { { gray } {#1} } }
-      {
-        \str_if_eq:nnTF {#4} { rg }
-          { \tl_set:Nn #7 { { rgb } { #1 ~ #2 ~ #3 } } }
-          {
-            \str_if_eq:nnTF {#5} { k }
-              { \tl_set:Nn #7 { { cmyk } { #1 ~ #2 ~ #3 ~ #4 } } }
-              {
-                \tl_set:Nn #1 { { gray } { 0 } }
-                \msg_warning:nnx { color } { unhandled }
-                  { \current at color }
-              }
-          }
-      }
-  }
-%    \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-%    \begin{macrocode}
-%</luatex|pdftex>
-%    \end{macrocode}
-%
 % \subsection{The color stack}
 %
 % For PDF-based engines, we have a color stack available inside the specials.
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index edcfafa3e..a46b7fc77 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -28,8 +28,6 @@ Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
 Defining \__kernel_backend_matrix:n on line ...
 Defining \__kernel_backend_matrix:x on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \l__color_backend_stack_int on line ...
 \l__color_backend_stack_int=\count...
 Defining \__kernel_color_backend_stack_init:Nnn on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index bf7b9dbce..ff67a9f10 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -29,8 +29,6 @@ Defining \__kernel_backend_align_begin: on line ...
 Defining \__kernel_backend_align_end: on line ...
 Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \__color_backend_select_cmyk:n on line ...
 Defining \__color_backend_select_gray:n on line ...
 Defining \__color_backend_select_named:n on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index 987652250..989e517dc 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -28,8 +28,6 @@ Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
 Defining \__kernel_backend_matrix:n on line ...
 Defining \__kernel_backend_matrix:x on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \l__color_backend_stack_int on line ...
 \l__color_backend_stack_int=\count...
 Defining \__kernel_color_backend_stack_init:Nnn on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index bf7b9dbce..ff67a9f10 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -29,8 +29,6 @@ Defining \__kernel_backend_align_begin: on line ...
 Defining \__kernel_backend_align_end: on line ...
 Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \__color_backend_select_cmyk:n on line ...
 Defining \__color_backend_select_gray:n on line ...
 Defining \__color_backend_select_named:n on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index dd96f48ae..f57e7eaad 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -26,8 +26,6 @@ Defining \__kernel_backend_literal_pdf:x on line ...
 Defining \__kernel_backend_literal_page:n on line ...
 Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \__color_backend_select:n on line ...
 Defining \__color_backend_select_cmyk:n on line ...
 Defining \__color_backend_select_gray:n on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index edcfafa3e..a46b7fc77 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -28,8 +28,6 @@ Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
 Defining \__kernel_backend_matrix:n on line ...
 Defining \__kernel_backend_matrix:x on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \l__color_backend_stack_int on line ...
 \l__color_backend_stack_int=\count...
 Defining \__kernel_color_backend_stack_init:Nnn on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index bf7b9dbce..ff67a9f10 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -29,8 +29,6 @@ Defining \__kernel_backend_align_begin: on line ...
 Defining \__kernel_backend_align_end: on line ...
 Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \__color_backend_select_cmyk:n on line ...
 Defining \__color_backend_select_gray:n on line ...
 Defining \__color_backend_select_named:n on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index 987652250..989e517dc 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -28,8 +28,6 @@ Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
 Defining \__kernel_backend_matrix:n on line ...
 Defining \__kernel_backend_matrix:x on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \l__color_backend_stack_int on line ...
 \l__color_backend_stack_int=\count...
 Defining \__kernel_color_backend_stack_init:Nnn on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index bf7b9dbce..ff67a9f10 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -29,8 +29,6 @@ Defining \__kernel_backend_align_begin: on line ...
 Defining \__kernel_backend_align_end: on line ...
 Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \__color_backend_select_cmyk:n on line ...
 Defining \__color_backend_select_gray:n on line ...
 Defining \__color_backend_select_named:n on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index dd96f48ae..f57e7eaad 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -26,8 +26,6 @@ Defining \__kernel_backend_literal_pdf:x on line ...
 Defining \__kernel_backend_literal_page:n on line ...
 Defining \__kernel_backend_scope_begin: on line ...
 Defining \__kernel_backend_scope_end: on line ...
-Defining \__color_backend_pickup:N on line ...
-Defining \__color_backend_pickup:w on line ...
 Defining \__color_backend_select:n on line ...
 Defining \__color_backend_select_cmyk:n on line ...
 Defining \__color_backend_select_gray:n on line ...





More information about the latex3-commits mailing list.