[latex3-commits] [latex3/latex2e] cmd-args: Apparently unnecessary (8ecbb264)

github at latex-project.org github at latex-project.org
Thu May 18 03:01:06 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : cmd-args
Link       : https://github.com/latex3/latex2e/commit/8ecbb2642dc05dca46dbf3d5398000bd7b4e1e54

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

commit 8ecbb2642dc05dca46dbf3d5398000bd7b4e1e54
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed May 17 22:01:06 2023 -0300

    Apparently unnecessary


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

8ecbb2642dc05dca46dbf3d5398000bd7b4e1e54
 base/lthooks.dtx | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index ded80ed7..59562817 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3797,13 +3797,6 @@
   {
     \@@_init_structure:n {#1}
     \@@_hook_gput_code_do:nnn {#1} {#2} {#3}
-%    \end{macrocode}
-%   The \cs{l_@@_tmpa_bool} is set in \cs{@@_try_declaring_generic_hook:nnn}.
-%   If \cs{l_@@_tmpa_bool} was set, it means this is a \hook{cmd} hook,
-%   so a call to \cs{@@_update_hook_code:n} is needed.
-%    \begin{macrocode}
-    \bool_if:NT \l_@@_tmpa_bool
-      { \@@_update_hook_code:n {#1} }
   }
 %    \end{macrocode}
 % \end{macro}
@@ -3906,7 +3899,6 @@
 \prg_new_protected_conditional:Npnn \@@_try_declaring_generic_hook:wn
     #1 / #2 / #3 / #4 \scan_stop: #5 { TF }
   {
-    \bool_set_false:N \l_@@_tmpa_bool
     \@@_if_generic:nTF {#5}
       {
         \@@_if_usable:nF {#5}
@@ -3923,7 +3915,6 @@
             \str_if_eq:nnT {#1} { cmd }
               {
                 \@@_try_put_cmd_hook:n {#5}
-                \bool_set_true:N \l_@@_tmpa_bool
               }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.