]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Autom4te::XFile: Remove unnecessary imports.
authorZack Weinberg <zackw@panix.com>
Mon, 31 Aug 2020 15:28:41 +0000 (11:28 -0400)
committerZack Weinberg <zackw@panix.com>
Mon, 31 Aug 2020 17:15:45 +0000 (13:15 -0400)
Autom4te::XFile does not appear to have any use for Carp, DynaLoader,
or File::Basename.

This happened to catch my eye while I was doing the previous two
patches.  I have not done a comprehensive audit of imports in the Perl
code.

* lib/Autom4te/XFile.pm: Remove ‘use’s of Carp, DynaLoader,
  and File::Basename.
  (@ISA): Remove DynaLoader.

lib/Autom4te/XFile.pm

index 8a49ac1a5d0bf0960732011a5de7a6b2e210b7b0..f858593f4223341921132ff5b19c929887d092d9 100644 (file)
@@ -73,11 +73,8 @@ use 5.006;
 use strict;
 use warnings;
 
-use Carp;
-use DynaLoader;
 use Errno;
 use Exporter;
-use File::Basename;
 use IO::File;
 
 use Autom4te::ChannelDefs;
@@ -85,7 +82,7 @@ use Autom4te::Channels qw (msg);
 use Autom4te::FileUtils;
 
 use vars qw ($AUTOLOAD @EXPORT @EXPORT_OK @ISA $VERSION);
-@ISA = qw (DynaLoader Exporter IO::File);
+@ISA = qw (Exporter IO::File);
 @EXPORT = @IO::File::EXPORT;
 $VERSION = "1.2";