You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2023/05/18 16:43:07 UTC

svn commit: r1909911 - /spamassassin/trunk/lib/Mail/SpamAssassin/Dns.pm

Author: hege
Date: Thu May 18 16:43:07 2023
New Revision: 1909911

URL: http://svn.apache.org/viewvc?rev=1909911&view=rev
Log:
Remove useless module preloading

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Dns.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Dns.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Dns.pm?rev=1909911&r1=1909910&r2=1909911&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Dns.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Dns.pm Thu May 18 16:43:07 2023
@@ -65,29 +65,6 @@ our $IS_DNS_AVAILABLE = undef;
 
 ###########################################################################
 
-BEGIN {
-  # some trickery. Load these modules right here, if possible; that way, if
-  # the module exists, we'll get it loaded now.  Very useful to avoid attempted
-  # loads later (which will happen).  If we do a fork(), we could wind up
-  # attempting to load these modules in *every* subprocess.
-  #
-# # We turn off strict and warnings, because Net::DNS and Razor both contain
-# # crud that -w complains about (perl 5.6.0).  Not that this seems to work,
-# # mind ;)
-# no strict;
-# local ($^W) = 0;
-
-  no warnings;
-  eval {
-    require MIME::Base64;
-  };
-  eval {
-    require IO::Socket::UNIX;
-  };
-};
-
-###########################################################################
-
 sub do_rbl_lookup {
   my ($self, $rule, $set, $type, $host, $subtest) = @_;