afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-09-07 03:02 pm

[dw-free] Eliminate Class::Autouse from the code

[commit: http://hg.dwscoalition.org/dw-free/rev/0565b0560eba]

http://bugs.dwscoalition.org/show_bug.cgi?id=1761

Code cleanup.

Patch by [personal profile] szabgab.

Files modified:
  • cgi-bin/modperl_subs.pl
--------------------------------------------------------------------------------
diff -r 1043065daebc -r 0565b0560eba cgi-bin/modperl_subs.pl
--- a/cgi-bin/modperl_subs.pl	Mon Sep 07 13:58:45 2009 +0000
+++ b/cgi-bin/modperl_subs.pl	Mon Sep 07 15:01:16 2009 +0000
@@ -31,22 +31,20 @@ use DW::BusinessRules::InviteCodes;
 use DW::BusinessRules::InviteCodes;
 use DW::BusinessRules::InviteCodeRequests;
 
-use Class::Autouse qw(
-                      DateTime
-                      DateTime::TimeZone
-                      LJ::CProd
-                      LJ::OpenID
-                      LJ::Location
-                      LJ::SpellCheck
-                      LJ::TextMessage
-                      LJ::ModuleCheck
-                      LJ::Widget
-                      MogileFS::Client
-                      DDLockClient
-                      LJ::BetaFeatures
-                      DW::InviteCodes
-                      DW::InviteCodeRequests
-                      );
+use DateTime;
+use DateTime::TimeZone;
+use LJ::CProd;
+use LJ::OpenID;
+use LJ::Location;
+use LJ::SpellCheck;
+use LJ::TextMessage;
+use LJ::ModuleCheck;
+use LJ::Widget;
+use MogileFS::Client;
+use DDLockClient;
+use LJ::BetaFeatures;
+use DW::InviteCodes;
+use DW::InviteCodeRequests;
 
 
 # force XML::Atom::* to be brought in (if we have it, it's optional),
@@ -55,15 +53,11 @@ BEGIN {
     LJ::ModuleCheck->have_xmlatom unless LJ::is_from_test();
 }
 
-# in web context, Class::Autouse will load this, which loads MapUTF8.
+# this loads MapUTF8.
 # otherwise, we'll rely on the AUTOLOAD in ljlib.pl to load MapUTF8
-use Class::Autouse qw(LJ::ConvUTF8);
+use LJ::ConvUTF8;
 
-# other things we generally want to load in web context, but don't need
-# in testing context:  (not autoloaded normal ways)
-use Class::Autouse qw(
-                      MIME::Words
-                      );
+use MIME::Words;
 
 # Try to load DBI::Profile
 BEGIN { $LJ::HAVE_DBI_PROFILE = eval "use DBI::Profile (); 1;" }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org