[latex3-commits] [latex3/latex3] main: Drop repetitive `\l__codedoc_macro_internal_set_bool` (7176b1017)

github at latex-project.org github at latex-project.org
Sun Nov 26 21:54:59 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/7176b10174f0e06bf878cb83c79c27ac4d3b8407

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

commit 7176b10174f0e06bf878cb83c79c27ac4d3b8407
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Sun Nov 26 08:22:50 2023 +0800

    Drop repetitive `\l__codedoc_macro_internal_set_bool`
    
    It acted exactly the same as `\l__codedoc_macro_internal_bool`.
    The dropped one had been repetitive since its introduction in commit
    bf322508 (Treat macros as internal/not-internal on a individual basis,
    2017-11-30).


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

7176b10174f0e06bf878cb83c79c27ac4d3b8407
 l3kernel/l3doc.dtx | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/l3kernel/l3doc.dtx b/l3kernel/l3doc.dtx
index 731748faf..e32efebd1 100644
--- a/l3kernel/l3doc.dtx
+++ b/l3kernel/l3doc.dtx
@@ -695,7 +695,6 @@ and all files in that bundle must be distributed together.
 %
 % \begin{variable}
 %   {
-%     \l_@@_macro_internal_set_bool,
 %     \l_@@_macro_internal_bool,
 %     \l_@@_macro_TF_bool,
 %     \l_@@_macro_pTF_bool,
@@ -710,7 +709,6 @@ and all files in that bundle must be distributed together.
 %   environments.  We initialize \cs{l_@@_override_module_tl} to avoid
 %   overriding module names by an empty name (meaning no module).
 %    \begin{macrocode}
-\bool_new:N \l_@@_macro_internal_set_bool
 \bool_new:N \l_@@_macro_internal_bool
 \bool_new:N \l_@@_macro_TF_bool
 \bool_new:N \l_@@_macro_pTF_bool
@@ -2350,11 +2348,8 @@ and all files in that bundle must be distributed together.
 %    \begin{macrocode}
 \prg_new_conditional:Npnn \@@_if_macro_internal:n #1 { p , T , F , TF }
   {
-    \bool_if:NTF \l_@@_macro_internal_set_bool
-      {
-        \bool_if:NTF \l_@@_macro_internal_bool
-          { \prg_return_true: } { \prg_return_false: }
-      }
+    \bool_if:NTF \l_@@_macro_internal_bool
+      { \prg_return_true: }
       {
         \tl_if_empty:fTF
           {
@@ -2886,16 +2881,10 @@ and all files in that bundle must be distributed together.
       } ,
     internal .value_forbidden:n = true ,
     internal .code:n =
-      {
-        \bool_set_true:N \l_@@_macro_internal_bool
-        \bool_set_true:N \l_@@_macro_internal_set_bool
-      } ,
+      { \bool_set_true:N \l_@@_macro_internal_bool } ,
     int .value_forbidden:n = true ,
     int .code:n =
-      {
-        \bool_set_true:N \l_@@_macro_internal_bool
-        \bool_set_true:N \l_@@_macro_internal_set_bool
-      } ,
+      { \bool_set_true:N \l_@@_macro_internal_bool } ,
     var .value_forbidden:n = true ,
     var .code:n =
       { \bool_set_true:N \l_@@_macro_var_bool } ,
@@ -2978,7 +2967,6 @@ and all files in that bundle must be distributed together.
   {
     \int_incr:N \l_@@_nested_macro_int
     \bool_set_false:N \l_@@_macro_internal_bool
-    \bool_set_false:N \l_@@_macro_internal_set_bool
     \bool_set_false:N \l_@@_macro_TF_bool
     \bool_set_false:N \l_@@_macro_pTF_bool
     \bool_set_false:N \l_@@_macro_noTF_bool





More information about the latex3-commits mailing list.