Ignore:
Timestamp:
1999-08-09T11:51:37+12:00 (25 years ago)
Author:
sjboddie
Message:

removed a couple of functions that are no longer required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/mgbuildproc.pm

    r315 r435  
    315315}
    316316
    317 # converts leading number in classification back
    318 # to letter it represents
    319 # i.e 67.2.4 becomes C.2.4
    320 sub char_classification {
    321     my $self = shift (@_);
    322     my ($classification) = @_;
    323 
    324     return $classification if $classification eq "";
    325     my ($c) = $classification =~ /^\.?(\d+)/;
    326     $c = chr($c);
    327     $classification =~ s/^\d+/$c/;
    328 
    329     return $classification;
    330 }
    331 
    332 # converts leading letter of a classification into its ascii equivalent
    333 # i.e C.2.4 becomes 67.2.4
    334 sub int_classification {
    335     my $self = shift (@_);
    336     my ($classification) = @_;
    337     my $c = ord($classification);
    338     $classification =~ s/^./$c/;
    339 
    340     return $classification;
    341 }
    3423171;
    343318
Note: See TracChangeset for help on using the changeset viewer.