remove more dead code
authorIan Beckwith <ianb@erislabs.net>
Tue, 19 Oct 2010 18:42:35 +0000 (19:42 +0100)
committerIan Beckwith <ianb@erislabs.net>
Tue, 19 Oct 2010 18:42:35 +0000 (19:42 +0100)
lib/ID3FS/Path.pm

index 2d96265..a961792 100644 (file)
@@ -498,8 +498,6 @@ sub tags
        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())
     {
@@ -517,14 +515,7 @@ sub tags
     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);
 
@@ -553,7 +544,6 @@ sub artists
        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" .
@@ -567,7 +557,6 @@ sub artists
 sub albums
 {
     my($self)=@_;
-    my @ids=();
     my $tail=$self->tail();
     if($self->is($TYPE_ARTIST, $tail))
     {