docs: implement uniq instead of depending on List::MoreUtils

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2011-12-01 16:05:51 +00:00
1 parent d18429eabf
commit 4dc235341d
1 file changed
+6 -1
+6 -1
View File
@@ -10,7 +10,6 @@ use warnings;
use Getopt::Long;
use IO::File;
use File::Basename;
use List::MoreUtils qw/ uniq /;
Getopt::Long::Configure('bundling');
@@ -99,6 +98,12 @@ sub read_index ($$) {
}
}
sub uniq (@) {
my %h;
foreach (@_) { $h{$_} = 1; }
return keys %h;
}
for (@docs) { s,^\Q$outdir\E/,, }
@docs = grep { -e "$outdir/$_" && (make_linktext($_) ne "NO-INDEX") } @docs;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.