remove unnecessary code
authorIan Beckwith <ianb@erislabs.net>
Tue, 19 Oct 2010 16:01:30 +0000 (17:01 +0100)
committerIan Beckwith <ianb@erislabs.net>
Tue, 19 Oct 2010 16:01:30 +0000 (17:01 +0100)
lib/ID3FS/Path.pm

index 0c1260d..86d469d 100644 (file)
@@ -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)=@_;