[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks2: Remove unused definitions (3d61c082)

PhelypeOleinik tex.phelype at gmail.com
Tue Aug 18 06:25:40 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks2
Link       : https://github.com/latex3/latex2e/commit/3d61c0826280db9aea89f87dc76741d3fb8aacac

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

commit 3d61c0826280db9aea89f87dc76741d3fb8aacac
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Tue Aug 18 01:25:40 2020 -0300

    Remove unused definitions


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

3d61c0826280db9aea89f87dc76741d3fb8aacac
 base/ltfiles.dtx     | 21 ---------------------
 base/source2edoc.cls | 37 -------------------------------------
 2 files changed, 58 deletions(-)

diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index e9c60de2..2b52292d 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -715,26 +715,6 @@
 %</2ekernel|latexrelease>
 %    \end{macrocode}
 %  \end{macro}
-
-
-%  \begin{macro}{\set at curr@file at trim@spaces}
-%
-%    Leftover moved from ltfiles.
-%    Earlier implementation approach --- this need a cleanup!
-%
-%    For |\include| and |\includeonly| we need a variant that removes
-%    any leading and trailing spaces from the filename, while leaving
-%    any spaces \emph{inside} the filename intact. In order simplify
-%    the implementaion we borrow some code from the \texttt{expl3}
-%    language, \textbf{\emph{beware}: this may change unannounced}.
-%    \begin{macrocode}
-\def\set at curr@file at trim@spaces#1{%
-  \@expl at tl@trim at spaces@apply@@nN {#1} \set at curr@file }
-%    \end{macrocode}
-%  \end{macro}
-
-
-
 %
 %    \begin{macrocode}
 %<latexrelease>\EndIncludeInRelease
@@ -776,7 +756,6 @@
 %<latexrelease>\EndIncludeInRelease
 %<*2ekernel>
 %    \end{macrocode}
-
 %
 % \begin{macro}{\@include}
 % \changes{v1.2g}{2020/05/02}{Support spaces in filenames by enclosing
diff --git a/base/source2edoc.cls b/base/source2edoc.cls
index 26c97ff7..ac688137 100644
--- a/base/source2edoc.cls
+++ b/base/source2edoc.cls
@@ -16,43 +16,6 @@
 \def\partname{File}
 
 
-\renewcommand*{\DocInclude}[1]{%
-  \relax
-  \clearpage
-  \docincludeaux
-  \IfFileExists{#1.fdd}%
-    {\def\currentfile{#1.fdd}}%
-    {\def\currentfile{#1.dtx}}%
-  \ifnum\@auxout=\@partaux
-    \@latexerr{\string\include\space cannot be nested}\@eha
-  \else
-    \set at curr@file at trim@spaces{#1}%
-    \expandafter\@docinclude\expandafter{\@curr at file}
- \fi}
-\def\@docinclude#1 {\clearpage
-\if at filesw \immediate\write\@mainaux{\string\@input{"#1.aux"}}\fi
-\@tempswatrue\if at partsw \@tempswafalse\edef\@tempb{#1}\@for
-\@tempa:=\@partlist\do{\ifx\@tempa\@tempb\@tempswatrue\fi}\fi
-\if at tempswa \let\@auxout\@partaux \if at filesw
-\immediate\openout\@partaux "#1.aux"
-\immediate\write\@partaux{\relax}\fi
-\let\@ltxdoc at PrintIndex\PrintIndex
-\let\PrintIndex\relax
-\let\@ltxdoc at PrintChanges\PrintChanges
-\let\PrintChanges\relax
-\let\@ltxdoc at theglossary\theglossary
-\let\@ltxdoc at endtheglossary\endtheglossary
-\part{\currentfile}%
-  {\let\ttfamily\relax
-  \xdef\filekey{\filekey, \thepart={\ttfamily\currentfile}}}%
-\DocInput{\currentfile}%
-\let\PrintIndex\@ltxdoc at PrintIndex
-\let\PrintChanges\@ltxdoc at PrintChanges
-\let\theglossary\@ltxdoc at theglossary
-\let\endtheglossary\@ltxdoc at endtheglossary
-\clearpage
-\@writeckpt{#1}\if at filesw \immediate\closeout\@partaux \fi
-\else\@nameuse{cp@#1}\fi\let\@auxout\@mainaux}
 \gdef\codeline at wrindex#1{\if at filesw
       \begingroup
         \let\protect\noexpand





More information about the latex3-commits mailing list.