Remove _isodate() method, used only within the class.
authorMike Taylor <mike@indexdata.com>
Wed, 29 Nov 2006 18:17:16 +0000 (18:17 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 29 Nov 2006 18:17:16 +0000 (18:17 +0000)
Use isodate() directly, imported from Utils.pm

lib/ZOOM/IRSpy/Record.pm

index 52e2b41..9141a51 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Record.pm,v 1.19 2006-11-01 10:14:56 mike Exp $
+# $Id: Record.pm,v 1.20 2006-11-29 18:17:16 mike Exp $
 
 package ZOOM::IRSpy::Record;
 
 
 package ZOOM::IRSpy::Record;
 
@@ -8,7 +8,7 @@ use warnings;
 
 use XML::LibXML;
 use XML::LibXML::XPathContext;
 
 use XML::LibXML;
 use XML::LibXML::XPathContext;
-use ZOOM::IRSpy::Utils qw(xml_encode);
+use ZOOM::IRSpy::Utils qw(xml_encode isodate);
 
 =head1 NAME
 
 
 =head1 NAME
 
@@ -101,7 +101,7 @@ sub store_result {
         $xml .= " $key=\"" . $this->_string2cdata($info{$key}) . "\"";
     }
 
         $xml .= " $key=\"" . $this->_string2cdata($info{$key}) . "\"";
     }
 
-    $xml .= ">" . $this->_isodate(time()) . "</irspy:$type>\n";
+    $xml .= ">" . isodate(time()) . "</irspy:$type>\n";
 
     $this->append_entry('irspy:status', $xml);
 }
 
     $this->append_entry('irspy:status', $xml);
 }
@@ -173,12 +173,6 @@ sub _string2cdata {
 }
 
 
 }
 
 
-sub _isodate {
-    my ($this, $time) = @_;
-    return ZOOM::IRSpy::Test::isodate($time);
-}
-
-
 =head1 SEE ALSO
 
 ZOOM::IRSpy
 =head1 SEE ALSO
 
 ZOOM::IRSpy