[latex3-commits] [latex3/latex2e] ltproperties: remove unneeded internal duplicate command (66b5b561)
github at latex-project.org
github at latex-project.org
Mon Sep 11 18:48:09 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : ltproperties
Link : https://github.com/latex3/latex2e/commit/66b5b561f322976b610c512ce0b4c70ed67a7b08
>---------------------------------------------------------------
commit 66b5b561f322976b610c512ce0b4c70ed67a7b08
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Sep 11 18:48:09 2023 +0200
remove unneeded internal duplicate command
>---------------------------------------------------------------
66b5b561f322976b610c512ce0b4c70ed67a7b08
base/ltproperties.dtx | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/base/ltproperties.dtx b/base/ltproperties.dtx
index 96063f59..39b9fac3 100644
--- a/base/ltproperties.dtx
+++ b/base/ltproperties.dtx
@@ -589,25 +589,17 @@
% \end{macrocode}
% \end{variable}
%
-% \begin{macro}[EXP]{\property_ref:nn, \@@_ref:nn, \@@_ref:ee}
+% \begin{macro}[EXP]{\property_ref:nn}
% Search for the label/property combination, and if not found fall back
% to the default of the property.
% \begin{macrocode}
\cs_new:Npn \property_ref:nn #1#2
- { \@@_ref:ee { \tl_to_str:n {#1} } { \tl_to_str:n {#2} } }
-\cs_new:Npn \@@_ref:nn #1#2
{
- \tl_if_exist:cTF { g_@@_label_ #1 _ #2 _tl }
- { \tl_use:c { g_@@_label_ #1 _ #2 _tl } }
- {
- \flag_if_raised:nF
- { l_@@_ref_flag } { \flag_raise:n { l_@@_ref_flag } }
- \tl_if_exist:cTF { g_@@_default_ #2 _tl }
- { \tl_use:c { g_@@_default_ #2 _tl } }
- { \msg_expandable_error:nnn { property } { not-declared } {#2} }
- }
+ \@@_ref:een
+ { \tl_to_str:n {#1} }
+ { \tl_to_str:n {#2} }
+ { \tl_use:c { g_@@_default_ #2 _tl } }
}
-\cs_generate_variant:Nn \@@_ref:nn { ee }
% \end{macrocode}
% \end{macro}
%
@@ -627,6 +619,8 @@
\tl_if_exist:cTF { g_@@_label_ #1 _ #2 _tl }
{ \tl_use:c { g_@@_label_ #1 _ #2 _tl } }
{
+ \flag_if_raised:nF
+ { l_@@_ref_flag } { \flag_raise:n { l_@@_ref_flag } }
% \end{macrocode}
% We test for the default of the property only to check if the property has
% been declared.
More information about the latex3-commits
mailing list.