docs: implement uniq instead of depending on List::MoreUtils
authorIan Campbell <ian.campbell@citrix.com>
Thu, 1 Dec 2011 16:05:51 +0000 (16:05 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 1 Dec 2011 16:05:51 +0000 (16:05 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/gen-html-index

index 0ce06601bd86e0babd8c2e9c1a841fac3656bb87..c0001d7f604abdf3a55753a7e7f7c0652fc1b17c 100644 (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;