]> scm.dxcluster.org Git - spider.git/commitdiff
remove Prot.pm, sort %valid fields
authorDirk Koopman <djk@tobit.co.uk>
Sat, 22 Jan 2022 12:59:49 +0000 (12:59 +0000)
committerDirk Koopman <djk@tobit.co.uk>
Sat, 22 Jan 2022 12:59:49 +0000 (12:59 +0000)
perl/Bands.pm
perl/Prot.pm [deleted file]

index cc67dc234da5b5ed13331143d26e039b39be993f..aa5bc9e03abb2dd175ffa7d7da8e16b0eb5a48ef 100644 (file)
@@ -21,18 +21,18 @@ use vars qw(%bands %regions %aliases $bandsfn %valid);
 $bandsfn = localdata("bands.pl");
 
 %valid = (
+                 band => '0,BAND,parraypairs',
+                 beacon => '0,BEACON,parraypairs',
                  cw => '0,CW,parraypairs',
-                 ssb => '0,SSB,parraypairs',
                  data => '0,DATA,parraypairs',
-                 sstv => '0,SSTV,parraypairs',
+                 fax => '0,FAX,parraypairs',
                  fstv => '0,FSTV,parraypairs',
-                 rtty => '0,RTTY,parraypairs',
-                 pactor => '0,PACTOR,parraypairs',
                  packet => '0,PACKET,parraypairs',
+                 pactor => '0,PACTOR,parraypairs',
                  repeater => '0,REPEATER,parraypairs',
-                 fax => '0,FAX,parraypairs',
-                 beacon => '0,BEACON,parraypairs',
-                 band => '0,BAND,parraypairs',
+                 rtty => '0,RTTY,parraypairs',
+                 ssb => '0,SSB,parraypairs',
+                 sstv => '0,SSTV,parraypairs',
                 );
 
 # load the band data
diff --git a/perl/Prot.pm b/perl/Prot.pm
deleted file mode 100644 (file)
index 89847c4..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# Base class for OO version of all protocol stuff
-#
-
-package Prot;
-
-use strict;
-
-
-use DXUtil;
-use DXDebug;
-use vars qw(%valid);
-
-%valid = (
-                 bellflag => '0,Bell?',
-                 datetime => '0,Date/Time,atime',
-                 dxcall => '0,DX Callsign',
-                 dxcount => '0,DX Count',
-                 freq => '0,Frequency',
-                 fromcall => '0,From Callsign',
-                 fromnode => '0,From Node',
-                 hereflag => '0,Here?,yesno',
-                 hops => '0,No. of hops',
-                 nodelist => '0,Node List,parray',
-                 origin => '0,Original Node',
-                 privflag => '0,Private?,yesno',
-                 rrflag => '0,RR Req.?,yesno',
-                 sort => '0,Sort',
-                 sysopflag => '0,Sysop flag',
-                 talkflag => '0,Talk mode',
-                 text => '0,Text',
-                 tocall => '0,To Callsign',
-                 tonode => '0,To Node',
-                 version => '0,Node Version',
-                 vianode => '0,Via Node',
-                 wwvcount => '0,WWV Count',
-                );
-
-
-sub new
-{
-       my $pkg = shift;
-       my $sort = shift;
-       my $self = bless { sort => $sort }, $pkg;
-       return $self;
-}
-
-sub AUTOLOAD
-{
-       no strict;
-       my $name = $AUTOLOAD;
-       return if $name =~ /::DESTROY$/;
-       $name =~ s/^.*:://o;
-  
-       confess "Non-existant field '$AUTOLOAD'" if !$valid{$name};
-       *$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}};
-       goto &$AUTOLOAD;
-}
-
-1;
-__END__