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-12 11:17 am

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

[commit: http://hg.dwscoalition.org/dw-free/rev/4cc0e262223e]

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

Eliminate Class::Autouse from more files.

Patch by [personal profile] szabgab.

Files modified:
  • cgi-bin/LJ/Widget/BetaFeature.pm
  • cgi-bin/LJ/Widget/ExpungedUsers.pm
  • cgi-bin/LJ/Widget/LayoutChooser.pm
  • cgi-bin/LJ/Widget/SiteMessages.pm
  • cgi-bin/LJ/Widget/SubmitRequest.pm
  • cgi-bin/LJ/Widget/ThemeNav.pm
  • cgi-bin/communitylib.pl
  • cgi-bin/ljcmdbuffer.pl
  • cgi-bin/ljhooks.pl
  • cgi-bin/ljlib.pl
  • cgi-bin/ljprotocol.pl
  • cgi-bin/ljtextutil.pl
  • cgi-bin/talklib.pl
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/LJ/Widget/BetaFeature.pm
--- a/cgi-bin/LJ/Widget/BetaFeature.pm	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/LJ/Widget/BetaFeature.pm	Sat Sep 12 11:16:59 2009 +0000
@@ -3,7 +3,7 @@ use strict;
 use strict;
 use base qw(LJ::Widget);
 use Carp qw(croak);
-use Class::Autouse qw( LJ::BetaFeatures );
+use LJ::BetaFeatures;
 
 sub need_res { }
 
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/LJ/Widget/ExpungedUsers.pm
--- a/cgi-bin/LJ/Widget/ExpungedUsers.pm	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/LJ/Widget/ExpungedUsers.pm	Sat Sep 12 11:16:59 2009 +0000
@@ -4,7 +4,7 @@ use base qw(LJ::Widget);
 use base qw(LJ::Widget);
 use Carp qw(croak);
 
-use Class::Autouse qw(LJ::ExpungedUsers);
+use LJ::ExpungedUsers;
 
 # increments with each rendering of the sorter bar
 my $sorter_bar_idx = 0;
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/LJ/Widget/LayoutChooser.pm
--- a/cgi-bin/LJ/Widget/LayoutChooser.pm	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/LJ/Widget/LayoutChooser.pm	Sat Sep 12 11:16:59 2009 +0000
@@ -3,7 +3,7 @@ use strict;
 use strict;
 use base qw(LJ::Widget);
 use Carp qw(croak);
-use Class::Autouse qw( LJ::Customize );
+use LJ::Customize;
 
 sub ajax { 1 }
 sub authas { 1 }
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/LJ/Widget/SiteMessages.pm
--- a/cgi-bin/LJ/Widget/SiteMessages.pm	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/LJ/Widget/SiteMessages.pm	Sat Sep 12 11:16:59 2009 +0000
@@ -3,7 +3,7 @@ use strict;
 use strict;
 use base qw(LJ::Widget);
 use Carp qw(croak);
-use Class::Autouse qw( LJ::SiteMessages );
+use LJ::SiteMessages;
 
 sub render_body {
     my $class = shift;
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/LJ/Widget/SubmitRequest.pm
--- a/cgi-bin/LJ/Widget/SubmitRequest.pm	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/LJ/Widget/SubmitRequest.pm	Sat Sep 12 11:16:59 2009 +0000
@@ -3,7 +3,7 @@ use strict;
 use strict;
 use base qw(LJ::Widget);
 use Carp qw(croak);
-use Class::Autouse qw( Captcha::reCAPTCHA );
+use Captcha::reCAPTCHA;
 
 use LJ::ModuleLoader;
 LJ::ModuleLoader->autouse_subclasses('LJ::Widget::SubmitRequest');
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/LJ/Widget/ThemeNav.pm
--- a/cgi-bin/LJ/Widget/ThemeNav.pm	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/LJ/Widget/ThemeNav.pm	Sat Sep 12 11:16:59 2009 +0000
@@ -3,7 +3,7 @@ use strict;
 use strict;
 use base qw(LJ::Widget);
 use Carp qw(croak);
-use Class::Autouse qw( LJ::Customize );
+use LJ::Customize;
 
 sub ajax { 1 }
 sub can_fake_ajax_post { 1 }
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/communitylib.pl
--- a/cgi-bin/communitylib.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/communitylib.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -3,12 +3,10 @@ package LJ;
 package LJ;
 
 use strict;
-use Class::Autouse qw(
-                      LJ::Event::CommunityInvite
-                      LJ::Event::CommunityJoinRequest
-                      LJ::Event::CommunityJoinApprove
-                      LJ::Event::CommunityJoinReject
-                      );
+use LJ::Event::CommunityInvite;
+use LJ::Event::CommunityJoinRequest;
+use LJ::Event::CommunityJoinApprove;
+use LJ::Event::CommunityJoinReject;
 
 # <LJFUNC>
 # name: LJ::get_sent_invites
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/ljcmdbuffer.pl
--- a/cgi-bin/ljcmdbuffer.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/ljcmdbuffer.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -2,7 +2,7 @@
 #
 
 use strict;
-use Class::Autouse qw(LJ::Event);
+use LJ::Event;
 
 use lib "$LJ::HOME/cgi-bin";
 require "ljlib.pl";
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/ljhooks.pl
--- a/cgi-bin/ljhooks.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/ljhooks.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -1,8 +1,6 @@ package LJ;
 package LJ;
 use strict;
-use Class::Autouse qw(
-                      LJ::ModuleLoader
-                      );
+use LJ::ModuleLoader;
 
 my $hooks_dir_scanned = 0;  # bool: if we've loaded everything from cgi-bin/LJ/Hooks/
 
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/ljlib.pl
--- a/cgi-bin/ljlib.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/ljlib.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -32,27 +32,24 @@ use Time::Local ();
 use Time::Local ();
 use Storable ();
 use Compress::Zlib ();
-use Class::Autouse qw(
-                      DW::Request
-                      TheSchwartz
-                      TheSchwartz::Job
-                      LJ::Comment
-                      LJ::Config
-                      LJ::ExternalSite
-                      LJ::ExternalSite::Vox
-                      LJ::Message
-                      LJ::PageStats
-                      LJ::AccessLogSink
-                      LJ::ConvUTF8
-                      LJ::Userpic
-                      LJ::ModuleCheck
-                      IO::Socket::INET
-                      LJ::UniqCookie
-                      LJ::WorkerResultStorage
-                      LJ::EventLogRecord
-                      LJ::EventLogRecord::DeleteComment
-                      );
-
+use DW::Request;
+use TheSchwartz;
+use TheSchwartz::Job;
+use LJ::Comment;
+use LJ::Config;
+use LJ::ExternalSite;
+use LJ::ExternalSite::Vox;
+use LJ::Message;
+use LJ::PageStats;
+use LJ::AccessLogSink;
+use LJ::ConvUTF8;
+use LJ::Userpic;
+use LJ::ModuleCheck;
+use IO::Socket::INET;
+use LJ::UniqCookie;
+use LJ::WorkerResultStorage;
+use LJ::EventLogRecord;
+use LJ::EventLogRecord::DeleteComment;
 use DW::External::Account;
 use DW::External::User;
 use DW::Logic::LogItems;
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/ljprotocol.pl
--- a/cgi-bin/ljprotocol.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/ljprotocol.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -5,18 +5,16 @@ no warnings 'uninitialized';
 no warnings 'uninitialized';
 
 use LJ::Constants;
-use Class::Autouse qw(
-                      LJ::Console
-                      LJ::Event::JournalNewEntry
-                      LJ::Event::UserNewEntry
-                      LJ::Event::AddedToCircle
-                      LJ::Entry
-                      LJ::Poll
-                      LJ::EventLogRecord::NewEntry
-                      LJ::EventLogRecord::EditEntry
-                      LJ::Config
-                      LJ::Comment
-                      );
+use LJ::Console;
+use LJ::Event::JournalNewEntry;
+use LJ::Event::UserNewEntry;
+use LJ::Event::AddedToCircle;
+use LJ::Entry;
+use LJ::Poll;
+use LJ::EventLogRecord::NewEntry;
+use LJ::EventLogRecord::EditEntry;
+use LJ::Config;
+use LJ::Comment;
 
 LJ::Config->load;
 
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/ljtextutil.pl
--- a/cgi-bin/ljtextutil.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/ljtextutil.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -2,10 +2,8 @@ use strict;
 use strict;
 no warnings 'uninitialized';
 
-use Class::Autouse qw(
-                      LJ::ConvUTF8
-                      HTML::TokeParser
-                      );
+use LJ::ConvUTF8;
+use HTML::TokeParser;
 
 # <LJFUNC>
 # name: LJ::trim
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/talklib.pl
--- a/cgi-bin/talklib.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/talklib.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -5,14 +5,12 @@ package LJ::Talk;
 package LJ::Talk;
 
 use LJ::Constants;
-use Class::Autouse qw(
-                      LJ::Event::JournalNewComment
-                      LJ::Event::UserNewComment
-                      LJ::Comment
-                      LJ::EventLogRecord::NewComment
-                      Captcha::reCAPTCHA
-                      LJ::OpenID
-                      );
+use LJ::Event::JournalNewComment;
+use LJ::Event::UserNewComment;
+use LJ::Comment;
+use LJ::EventLogRecord::NewComment;
+use Captcha::reCAPTCHA;
+use LJ::OpenID;
 use MIME::Words;
 use Carp qw(croak);
 
diff -r 731a3f34d14e -r 4cc0e262223e cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Sat Sep 12 11:09:42 2009 +0000
+++ b/cgi-bin/weblib.pl	Sat Sep 12 11:16:59 2009 +0000
@@ -10,15 +10,13 @@ require "crumbs.pl";
 require "crumbs.pl";
 
 use Carp;
-use Class::Autouse qw(
-                      DW::Request
-                      LJ::Event
-                      LJ::Subscription::Pending
-                      LJ::M::ProfilePage
-                      LJ::Directory::Search
-                      LJ::Directory::Constraint
-                      LJ::M::FriendsOf
-                      );
+use DW::Request;
+use LJ::Event;
+use LJ::Subscription::Pending;
+use LJ::M::ProfilePage;
+use LJ::Directory::Search;
+use LJ::Directory::Constraint;
+use LJ::M::FriendsOf;
 
 # <LJFUNC>
 # name: LJ::img
--------------------------------------------------------------------------------

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