[LON-CAPA-cvs] cvs: loncom /homework matchresponse.pm optionresponse.pm radiobuttonresponse.pm rankresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 13 Oct 2003 19:25:30 -0000


albertel		Mon Oct 13 15:25:30 2003 EDT

  Modified files:              
    /loncom/homework	matchresponse.pm rankresponse.pm 
                    	radiobuttonresponse.pm optionresponse.pm 
  Log:
  - cleaining up some code
  
  
Index: loncom/homework/matchresponse.pm
diff -u loncom/homework/matchresponse.pm:1.25 loncom/homework/matchresponse.pm:1.26
--- loncom/homework/matchresponse.pm:1.25	Fri Oct 10 12:47:25 2003
+++ loncom/homework/matchresponse.pm	Mon Oct 13 15:25:30 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Full matching style response
 #
-# $Id: matchresponse.pm,v 1.25 2003/10/10 16:47:25 albertel Exp $
+# $Id: matchresponse.pm,v 1.26 2003/10/13 19:25:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -358,7 +358,6 @@
 				           \%Apache::response::foilgroup);
     my $part=$Apache::inputtags::part;
     my $solved=$Apache::lonhomework::history{"resource.$part.solved"};
-    my $status=$Apache::inputtags::status[-1];
     my %letter_name_map;
     if (defined(%{ $Apache::response::itemgroup{'letter_name_map'} })) {
 	%letter_name_map=
Index: loncom/homework/rankresponse.pm
diff -u loncom/homework/rankresponse.pm:1.20 loncom/homework/rankresponse.pm:1.21
--- loncom/homework/rankresponse.pm:1.20	Wed Sep 24 13:57:42 2003
+++ loncom/homework/rankresponse.pm	Mon Oct 13 15:25:30 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # rank style response
 #
-# $Id: rankresponse.pm,v 1.20 2003/09/24 17:57:42 sakharuk Exp $
+# $Id: rankresponse.pm,v 1.21 2003/10/13 19:25:30 albertel Exp $
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -238,7 +238,6 @@
     my (@whichfoils)=&whichfoils($max,$randomize);
     my $part=$Apache::inputtags::part;
     my $solved=$Apache::lonhomework::history{"resource.$part.solved"};
-    my $status=$Apache::inputtags::status[-1];
     my @whichopt=(1..($#whichfoils+1));
     my @correctorder=&get_correct_order($tol,@whichfoils);
     if ( &Apache::response::show_answer() && ($target ne 'tex')) {
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.73 loncom/homework/radiobuttonresponse.pm:1.74
--- loncom/homework/radiobuttonresponse.pm:1.73	Mon Sep 22 16:49:01 2003
+++ loncom/homework/radiobuttonresponse.pm	Mon Oct 13 15:25:30 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.73 2003/09/22 20:49:01 albertel Exp $
+# $Id: radiobuttonresponse.pm,v 1.74 2003/10/13 19:25:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -371,7 +371,6 @@
   my ($answer,@whichfoils)=&whichfoils($max,$randomize);
   my $part=$Apache::inputtags::part;
   my $solved=$Apache::lonhomework::history{"resource.$part.solved"};
-  my $status=$Apache::inputtags::status[-1];
   if ( ($target ne 'tex') &&
        &Apache::response::show_answer() ) {
     foreach my $name (@whichfoils) {
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.88 loncom/homework/optionresponse.pm:1.89
--- loncom/homework/optionresponse.pm:1.88	Fri Oct  3 11:23:53 2003
+++ loncom/homework/optionresponse.pm	Mon Oct 13 15:25:30 2003
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.88 2003/10/03 15:23:53 albertel Exp $
+# $Id: optionresponse.pm,v 1.89 2003/10/13 19:25:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -302,7 +302,6 @@
   my $id=$Apache::inputtags::response[-1];
   my $break;
   my $solved=$Apache::lonhomework::history{"resource.$part.solved"};
-  my $status=$Apache::inputtags::status[-1];
   if ( ($target ne 'tex') &&
        &Apache::response::show_answer() ) {
     foreach $name (@whichopt) {