[latex3-commits] [git/LaTeX3-latex3-latex3] master: Avoid global color structures (48c6e62)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 28 11:51:25 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/48c6e62168ccd6fd85c49191ead0db24727a8cd1

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

commit 48c6e62168ccd6fd85c49191ead0db24727a8cd1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Feb 28 10:51:25 2018 +0000

    Avoid global color structures
    
    ... at least until we know why they are required!


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

48c6e62168ccd6fd85c49191ead0db24727a8cd1
 l3experimental/l3draw/l3draw-state.dtx |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/l3experimental/l3draw/l3draw-state.dtx b/l3experimental/l3draw/l3draw-state.dtx
index 91ba8e1..556043b 100644
--- a/l3experimental/l3draw/l3draw-state.dtx
+++ b/l3experimental/l3draw/l3draw-state.dtx
@@ -124,14 +124,6 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}{\g_@@_fill_color_tl, \g_@@_stroke_color_tl}
-%   For tracking.
-%    \begin{macrocode}
-\tl_new:N \g_@@_fill_color_tl
-\tl_new:N \g_@@_stroke_color_tl
-%    \end{macrocode}
-% \end{variable}
-%
 % \begin{macro}{\draw_color:n, \draw_color_fill:n, \draw_color_stroke:n}
 % \begin{macro}{\@@_color:nn}
 % \begin{macro}{\@@_color_aux:nn, \@@_color_aux:Vn}
@@ -155,12 +147,9 @@
     \color_parse:nN {#2} \l_@@_color_tmp_tl
     \tl_if_blank:nTF {#1}
       {
-        \tl_gset_eq:NN \g_@@_fill_color_tl \l_@@_color_tmp_tl
-        \tl_gset_eq:NN \g_@@_stroke_color_tl \l_@@_color_tmp_tl
         \@@_color_aux:Vn \l_@@_color_tmp_tl { color }
       }
       {
-        \tl_gset_eq:cN { g_@@_ #1 _color_tl } \l_@@_color_tmp_tl
         \@@_color_aux:Vn \l_@@_color_tmp_tl { #1 }
       }
   }





More information about the latex3-commits mailing list