From 5c3092f1838b4e4331dadc228aac6147a9bf24e4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 19 Feb 2010 15:51:06 -0600 Subject: a few cleanups --- lib/Locale/POFileManager/File.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/Locale/POFileManager') diff --git a/lib/Locale/POFileManager/File.pm b/lib/Locale/POFileManager/File.pm index fd1575b..368025b 100644 --- a/lib/Locale/POFileManager/File.pm +++ b/lib/Locale/POFileManager/File.pm @@ -40,12 +40,6 @@ sub _build_entries { return (-r $filename) ? Locale::PO->load_file_asarray($filename) : []; } -sub entry_for { - my $self = shift; - my ($msgid) = @_; - return first { $_->msgid eq '"' . $msgid . '"' } $self->entries; -} - sub add_entry { my $self = shift; if (@_ == 1) { @@ -58,6 +52,12 @@ sub add_entry { } } +sub entry_for { + my $self = shift; + my ($msgid) = @_; + return first { $_->msgid eq '"' . $msgid . '"' } $self->entries; +} + sub save { my $self = shift; -- cgit v1.2.3-54-g00ecf