[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove test for theHequation as it is always defined (1686ecb)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Feb 7 12:57:41 CET 2023


Repository : https://github.com/latex3/hyperref
On branch  : cleanup-patches
Link       : https://github.com/latex3/hyperref/commit/1686ecbd7c9bf98f9f50e55657b6dd051c32a473

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

commit 1686ecbd7c9bf98f9f50e55657b6dd051c32a473
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Feb 7 12:57:41 2023 +0100

    remove test for theHequation as it is always defined


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

1686ecbd7c9bf98f9f50e55657b6dd051c32a473
 hyperref.dtx | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 2c257fe..5dc5c94 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -10423,13 +10423,6 @@
 %    \begin{macro}{\hyper at refstepcounter}
 %    \begin{macrocode}
 \def\hyper at refstepcounter#1{%
-  \edef\This at name{#1}%
-  \ifx\This at name\name at of@eq
-    \@ifundefined{theHequation}{%
-      \make at stripped@name{\theequation}%
-      \let\theHequation\newname
-    }{}%
-  \fi
   \HyCnt at ProvideTheHCounter{#1}%
   \hyper at makecurrent{#1}%
   \ifmeasuring@
@@ -10836,10 +10829,6 @@
   \def\equation{%
     \let\refstepcounter\H at refstepcounter
     \H at equation
-    \@ifundefined{theHequation}{%
-      \make at stripped@name{\theequation}%
-      \let\theHequation\newname
-    }{}%
     \hyper at makecurrent{equation}%
 %    \end{macrocode}
 %    \cs{mathopen} is needed in case the equation starts with
@@ -10880,10 +10869,6 @@
   \else
     \ifx\\\@currentHref\\%
     \else
-      \@ifundefined{theHequation}{%
-        \make at stripped@name{\theequation}%
-        \let\theHequation\newname
-      }{}%
       \hyper at makecurrent{equation}%
       \mathopen{%
         \Hy at raisedlink{%
@@ -10917,10 +10902,6 @@
   \def\subeqnarray{%
     \let\Hy at reserved@a\relax
     \H at subeqnarray
-    \@ifundefined{theHequation}{%
-      \make at stripped@name{\theequation}%
-      \let\theHequation\newname
-    }{}%
     \hyper at makecurrent{equation}%
     \hyper at anchorstart{\@currentHref}{}\hyper at anchorend
   }%
@@ -10961,9 +10942,7 @@
   \let\HyOrg at subequations\subequations
   \def\subequations{%
     \stepcounter{equation}%
-    \protected at edef\theHparentequation{%
-      \@ifundefined{theHequation}\theequation\theHequation
-    }%
+    \protected at edef\theHparentequation{\theHequation}%
     \addtocounter{equation}{-1}%
     \HyOrg at subequations
     \def\theHequation{\theHparentequation\alph{equation}}%





More information about the latex3-commits mailing list.