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:
52a0cfd
)
remove more dead code
author
Ian Beckwith
<ianb@erislabs.net>
Tue, 19 Oct 2010 18:42:35 +0000
(19:42 +0100)
committer
Ian Beckwith
<ianb@erislabs.net>
Tue, 19 Oct 2010 18:42:35 +0000
(19:42 +0100)
lib/ID3FS/Path.pm
patch
|
blob
|
history
diff --git
a/lib/ID3FS/Path.pm
b/lib/ID3FS/Path.pm
index
2d96265
..
a961792
100644
(file)
--- a/
lib/ID3FS/Path.pm
+++ b/
lib/ID3FS/Path.pm
@@
-498,8
+498,6
@@
sub tags
return($self->{db}->cmd_firstcol($sql));
}
my $hasvals=$self->expecting_values();
return($self->{db}->cmd_firstcol($sql));
}
my $hasvals=$self->expecting_values();
- my $parent=$self->trailing_tag_parent();
- my @ids=();
my $sql="SELECT tags.name FROM ";
if($self->in_or())
{
my $sql="SELECT tags.name FROM ";
if($self->in_or())
{
@@
-517,14
+515,7
@@
sub tags
my $id=$self->trailing_tag_id();
my $parentclause= "tags.parents_id='";
my $id=$self->trailing_tag_id();
my $parentclause= "tags.parents_id='";
- if($hasvals)
- {
- $parentclause .= $id;
- }
- elsif($parent)
- {
- $parentclause .= $parent;
- }
+ $parentclause .= $id if($hasvals);
$parentclause .= "'";
push(@andclauses, $parentclause);
$parentclause .= "'";
push(@andclauses, $parentclause);
@@
-553,7
+544,6
@@
sub artists
my $sql="SELECT DISTINCT name FROM artists WHERE name!='';";
return($self->{db}->cmd_firstcol($sql));
}
my $sql="SELECT DISTINCT name FROM artists WHERE name!='';";
return($self->{db}->cmd_firstcol($sql));
}
- my @ids=();
my $sql=$self->sql_start("artists.name");
$sql .= ("INNER JOIN artists ON files.artists_id=artists.id\n" .
"WHERE artists.name != ''\n" .
my $sql=$self->sql_start("artists.name");
$sql .= ("INNER JOIN artists ON files.artists_id=artists.id\n" .
"WHERE artists.name != ''\n" .
@@
-567,7
+557,6
@@
sub artists
sub albums
{
my($self)=@_;
sub albums
{
my($self)=@_;
- my @ids=();
my $tail=$self->tail();
if($self->is($TYPE_ARTIST, $tail))
{
my $tail=$self->tail();
if($self->is($TYPE_ARTIST, $tail))
{