Skip to content

Commit

Permalink
refactor(pgfcore): replace nested \protect by \protected\def
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Menke <[email protected]>
  • Loading branch information
hmenke committed Dec 15, 2021
1 parent 17352e2 commit 5d099a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions tex/generic/pgf/basiclayer/pgfcore.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,4 @@
\input pgfcorepatterns.code.tex
\input pgfcorerdf.code.tex

\pgfutil@ifundefined{pgf@texdist@protect}{%
\def\pgf@texdist@protect{}%
}{}
\endinput
7 changes: 1 addition & 6 deletions tex/generic/pgf/math/pgfmathfloat.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1637,12 +1637,7 @@
% variables in /pgf/number format).
%
% You may specify optional arguments with \pgfmathprintnumber[...].
\def\pgfmathprintnumber{%
% \protect allows to supply \pgfmathprintnumber inside of latex
% captions. The \csname yields \relax in case protect is undefined.
\pgf@texdist@protect\pgfmathprintnumber@protected
}%
\def\pgfmathprintnumber@protected{%
\pgfutil@protected\def\pgfmathprintnumber{%
\pgfutil@ifnextchar[%
{\pgfmathprintnumber@OPT}%
{\pgfmathprintnumber@noopt}%
Expand Down
2 changes: 0 additions & 2 deletions tex/latex/pgf/basiclayer/pgfcore.sty
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
\RequirePackage{keyval}
\RequirePackage{xcolor}

\def\pgf@texdist@protect{\protect}%

\input{pgfcore.code.tex}

\endinput

0 comments on commit 5d099a8

Please sign in to comment.