[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sat, 22 Mar 2008 15:47:42 -0000


raeburn		Sat Mar 22 11:47:42 2008 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Update comments for sub ssi().
  - Remove $count and $status from sub ssi() - no longer used.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.949 loncom/lonnet/perl/lonnet.pm:1.950
--- loncom/lonnet/perl/lonnet.pm:1.949	Tue Mar 11 22:46:27 2008
+++ loncom/lonnet/perl/lonnet.pm	Sat Mar 22 11:47:41 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.949 2008/03/12 02:46:27 raeburn Exp $
+# $Id: lonnet.pm,v 1.950 2008/03/22 15:47:41 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1705,19 +1705,13 @@
 #  form   Hash that describes how the rendering should be done
 #         and other things.
 # Returns:
-#   Scalar context: The content of the reply.
-#   Array context:  2 element list of the content and the full response variable.
+#   Scalar context: The content of the response.
+#   Array context:  2 element list of the content and the full response object.
 #     
-# Returns:
-#    The content of the response.
 sub ssi {
 
     my ($fn,%form)=@_;
-    my $count = scalar(@_);
-    
-
     my $ua=new LWP::UserAgent;
-    
     my $request;
 
     $form{'no_update_last_known'}=1;
@@ -1731,7 +1725,6 @@
 
     $request->header(Cookie => $ENV{'HTTP_COOKIE'});
     my $response=$ua->request($request);
-    my $status = $response->code;
 
     if (wantarray) {
 	return ($response->content, $response);