From: Ian Beckwith Date: Tue, 19 Oct 2010 16:01:30 +0000 (+0100) Subject: remove unnecessary code X-Git-Tag: debian/1.0-1~25 X-Git-Url: http://erislabs.net/gitweb/?p=id3fs.git;a=commitdiff_plain;h=7d2f654d5e0ac738b68ac2e9af0dffcc65eb7b73 remove unnecessary code --- diff --git a/lib/ID3FS/Path.pm b/lib/ID3FS/Path.pm index 0c1260d..86d469d 100644 --- a/lib/ID3FS/Path.pm +++ b/lib/ID3FS/Path.pm @@ -99,7 +99,8 @@ sub dirents } elsif($state==$STATE_TAG || $state==$STATE_TAGVAL) { - if($state==$STATE_TAG && $self->at($TYPE_TAG) && + my $tail=$self->tail(); + if($state==$STATE_TAG && $self->is($TYPE_TAG, $tail) && $self->{db}->tag_has_values($self->tail()->id())) { @dents=$self->tags(); @@ -484,12 +485,6 @@ sub tail return($self->{elements}->[$#{$self->{elements}}]); } -sub at -{ - my($self, $type)=@_; - return($self->is($type, $self->tail())); -} - sub is { my($self, $type, $thing)=@_;