summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-06-23 19:56:58 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-06-23 19:56:58 +0000
commit8d4d67a7288142fa4e995ad122e2e36565179268 (patch)
tree4603de171b2b024f63eb33d10ef835f6d3cf78cf /regress/usr.bin
parent94b47bda1ee4453608ea42ecb0ef3efae7ba0fab (diff)
delete unused "lastline" state variable and some commented out lines;
no functional change
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mdoclint/mdoclint9
1 files changed, 1 insertions, 8 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint
index 31ba8af245b..9a61a02924a 100644
--- a/regress/usr.bin/mdoclint/mdoclint
+++ b/regress/usr.bin/mdoclint/mdoclint
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: mdoclint,v 1.71 2017/06/23 19:16:49 schwarze Exp $
+# $OpenBSD: mdoclint,v 1.72 2017/06/23 19:56:57 schwarze Exp $
# $NetBSD: mdoclint,v 1.77 2017/06/08 10:19:56 wiz Exp $
#
# Copyright (c) 2001-2017 Thomas Klausner
@@ -209,7 +209,6 @@ sub new
my $o = {
mandoc_p => 1,
all => [],
- lastline => '',
changes => 0,
shseen => {},
current_section_header => '',
@@ -298,13 +297,8 @@ sub process_line
if (/^\.TH\s+/o) {
$s->warning("not mandoc") if $opt_m;
$s->{mandoc_p} = 0;
-# /^.TH\s*[\w-_".]+\s*([1-9])/;
-# $section = $1;
return "$_\n";
}
-# if (/^.Dt\s*[\w-_".]+\s*([1-9])/) {
-# $section = $1;
-# }
if (/^\.Dt\s+/o) {
if (/^\.Dt\s+(?:[A-Z\d._-]+)\s+($sections_re)(?:\s+$arches_re)?$/o) {
$s->{sec} = $1;
@@ -363,7 +357,6 @@ sub process_line
}
}
}
- $s->{lastline} = $_;
return "$_\n";
}