From: Mike Taylor Date: Wed, 29 Nov 2006 18:17:16 +0000 (+0000) Subject: Remove _isodate() method, used only within the class. X-Git-Tag: CPAN-v1.02~54^2~695 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=bdf3cf0e4ebca2f323ac5b709aced7de95286f21;hp=e35998fe0888f71a9356ee04d050223f4e202634 Remove _isodate() method, used only within the class. Use isodate() directly, imported from Utils.pm --- diff --git a/lib/ZOOM/IRSpy/Record.pm b/lib/ZOOM/IRSpy/Record.pm index 52e2b41..9141a51 100644 --- a/lib/ZOOM/IRSpy/Record.pm +++ b/lib/ZOOM/IRSpy/Record.pm @@ -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; @@ -8,7 +8,7 @@ use warnings; use XML::LibXML; use XML::LibXML::XPathContext; -use ZOOM::IRSpy::Utils qw(xml_encode); +use ZOOM::IRSpy::Utils qw(xml_encode isodate); =head1 NAME @@ -101,7 +101,7 @@ sub store_result { $xml .= " $key=\"" . $this->_string2cdata($info{$key}) . "\""; } - $xml .= ">" . $this->_isodate(time()) . "\n"; + $xml .= ">" . isodate(time()) . "\n"; $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