--- loncom/interface/statistics/lonstathelpers.pm 2005/03/14 20:28:22 1.44 +++ loncom/interface/statistics/lonstathelpers.pm 2005/03/21 19:47:54 1.45 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.44 2005/03/14 20:28:22 matthew Exp $ +# $Id: lonstathelpers.pm,v 1.45 2005/03/21 19:47:54 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1281,43 +1281,6 @@ sub get_time_limits { return ($starttime,$endtime); } - - -#################################################### -#################################################### - -=pod - -=item sections_description - -Inputs: @Sections, an array of sections - -Returns: A plaintext description of the sections selected. - -=cut - -#################################################### -#################################################### -sub sections_description { - my @Sections = @_; - my $sectionstring = ''; - if (scalar(@Sections) > 1) { - if (scalar(@Sections) > 2) { - my $last = pop(@Sections); - $sectionstring = "Sections ".join(', ',@Sections).', and '.$last; - } else { - $sectionstring = "Sections ".join(' and ',@Sections); - } - } else { - if ($Sections[0] eq 'all') { - $sectionstring = "All sections"; - } else { - $sectionstring = "Section ".$Sections[0]; - } - } - return $sectionstring; -} - #################################################### ####################################################