From: Zack Weinberg Date: Mon, 31 Aug 2020 15:28:41 +0000 (-0400) Subject: Autom4te::XFile: Remove unnecessary imports. X-Git-Tag: v2.69c~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c14739e7c6e5906197b704af91152cbc0a8ab38b;p=thirdparty%2Fautoconf.git Autom4te::XFile: Remove unnecessary imports. 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. --- diff --git a/lib/Autom4te/XFile.pm b/lib/Autom4te/XFile.pm index 8a49ac1a..f858593f 100644 --- a/lib/Autom4te/XFile.pm +++ b/lib/Autom4te/XFile.pm @@ -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";