vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16109: Remove commented code.

Committer: vsukhanov
Remove commented code.
Change flags in Apache::Request->new(...) call.
U   branches/modernize2/cgi-bin/LJ/Request/Apache.pm
U   branches/modernize2/cgi-bin/LJ/Request.pm
Modified: branches/modernize2/cgi-bin/LJ/Request/Apache.pm
===================================================================
--- branches/modernize2/cgi-bin/LJ/Request/Apache.pm	2010-01-20 08:17:38 UTC (rev 16108)
+++ branches/modernize2/cgi-bin/LJ/Request/Apache.pm	2010-01-20 08:37:34 UTC (rev 16109)
@@ -47,7 +47,7 @@
     my $r     = shift;
 
     $instance = bless {}, $class;
-    $instance->{apr} = Apache::Request->new($r, DISABLE_UPLOADS => 1);
+    $instance->{apr} = Apache::Request->new($r);
     $instance->{r} = $r;
     return $instance;
 }

Modified: branches/modernize2/cgi-bin/LJ/Request.pm
===================================================================
--- branches/modernize2/cgi-bin/LJ/Request.pm	2010-01-20 08:17:38 UTC (rev 16108)
+++ branches/modernize2/cgi-bin/LJ/Request.pm	2010-01-20 08:37:34 UTC (rev 16109)
@@ -4,47 +4,14 @@
 use constant MP2 => (exists $ENV{MOD_PERL_API_VERSION} &&
                      $ENV{MOD_PERL_API_VERSION} == 2) ? 1 : 0;
 
-#my $driver; # do not assign any value
-#use vars qw/$driver/;
 BEGIN {
     if (MP2){
         require LJ::Request::Apache2;
-#        $driver = 'LJ::Request::Apache2';
-#        import Apache2::Const qw/REDIRECT/;
-#        *OK        = \&Apache2::Const::OK;
-#        *REDIRECT  = \&REDIRECT;
-#        *DONE      = \&Apache2::Const::DONE;
-#        *NOT_FOUND = \&Apache2::Const::NOT_FOUND;
     } else {
         require LJ::Request::Apache;
-#        $driver = 'LJ::Request::Apache';
-#        *OK        = \&Apache::Constants::OK;
-#        *REDIRECT  = \&Apache::Constants::REDIRECT;
-#        *DONE      = \&Apache::Constants::DONE;
-#        *NOT_FOUND = \&Apache::Constants::NOT_FOUND;
     }
 }
 
-#my $instance = '';
-=head
-sub new {
-    my $class = shift;
-    my $apr   = shift;
-    
-    $instance ||= bless {}, $class;
-    $instance->{apr} = $driver->new($apr);
-                    #MP2
-                    #  ? LJ::Request::Apache2->new($apr)
-                    #  : LJ::Request::Apache->new($apr,
-                    #                         DISABLE_UPLOADS => 1
-                    #                        );
-    $instance->{r} = $apr;
-    return $instance;
-}
-=cut
 
-
-
-
 1;
 

Tags: livejournal, pm, vadvs
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments