projects
/
id3fs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
13e50dc
)
remove unnecessary code
author
Ian Beckwith
<ianb@erislabs.net>
Tue, 19 Oct 2010 16:01:30 +0000
(17:01 +0100)
committer
Ian Beckwith
<ianb@erislabs.net>
Tue, 19 Oct 2010 16:01:30 +0000
(17:01 +0100)
lib/ID3FS/Path.pm
patch
|
blob
|
history
diff --git
a/lib/ID3FS/Path.pm
b/lib/ID3FS/Path.pm
index
0c1260d
..
86d469d
100644
(file)
--- a/
lib/ID3FS/Path.pm
+++ b/
lib/ID3FS/Path.pm
@@
-99,7
+99,8
@@
sub dirents
}
elsif($state==$STATE_TAG || $state==$STATE_TAGVAL)
{
}
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();
$self->{db}->tag_has_values($self->tail()->id()))
{
@dents=$self->tags();
@@
-484,12
+485,6
@@
sub tail
return($self->{elements}->[$#{$self->{elements}}]);
}
return($self->{elements}->[$#{$self->{elements}}]);
}
-sub at
-{
- my($self, $type)=@_;
- return($self->is($type, $self->tail()));
-}
-
sub is
{
my($self, $type, $thing)=@_;
sub is
{
my($self, $type, $thing)=@_;