groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 36/51: [mdoc]: Drop dead code.


From: G. Branden Robinson
Subject: [groff] 36/51: [mdoc]: Drop dead code.
Date: Sun, 11 Sep 2022 08:15:54 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f5743282a313bdfc85b404985d1659d2e9e19b99
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Sep 7 23:04:37 2022 -0500

    [mdoc]: Drop dead code.
    
    The register `doc-volume-operating-system-ateol`, introduced in groff
    1.18 {July 2002}, was being tested but never set to a nonzero value.  In
    fact, it seems never to have been.
    
    * tmac/mdoc/doc-common: Get rid of it...
    
      (Dt): ...and the dependent block.
    
    This commit does not update indentation, because other, long-standing,
    misleading indentation is adjacent, so I will fix those together.
---
 ChangeLog            | 10 ++++++++++
 tmac/mdoc/doc-common |  8 --------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b3e713a75..a8b4aba76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-09-07  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [mdoc]: Drop dead code.  The register
+       `doc-volume-operating-system-ateol`, introduced in groff 1.18
+       {July 2002}, was being tested but never set to a nonzero value.
+       In fact, it seems never to have been.
+
+       * tmac/mdoc/doc-common: Get rid of it...
+       (Dt): ...and the dependent block.
+
 2022-09-07  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [mdoc]: Render `Ux` macro as "Unix", in mixed case.
diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
index 338b60df8..380791bd6 100644
--- a/tmac/mdoc/doc-common
+++ b/tmac/mdoc/doc-common
@@ -349,7 +349,6 @@
 .\" an alternative, more detailed scheme for naming the manual sections
 .\"
 .ds doc-volume-operating-system BSD
-.nr doc-volume-operating-system-ateol 0
 .ds doc-volume-ds-1 General Commands Manual
 .ds doc-volume-ds-2 System Calls Manual
 .ds doc-volume-ds-3 Library Functions Manual
@@ -473,13 +472,6 @@
 .    ds doc-section \$2
 .    ie \B'\$2' \{\
 .      if ((\$2 >= 1) & (\$2 <= 9)) \{\
-.        ie \n[doc-volume-operating-system-ateol] \{\
-.          ds doc-volume "\*[doc-volume-ds-\$2] \*[doc-volume-operating-system]
-.          if \A'\$3' \{\
-.            if d doc-volume-as-\$3 \
-.              as doc-volume "/\*[doc-volume-as-\$3]
-.        \}\}
-.        el \{\
 .          ds doc-volume "\*[doc-volume-operating-system]
 .          if \A'\$3' \{\
 .            if d doc-volume-as-\$3 \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]