X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2FID3FS%2FDB.pm;fp=lib%2FID3FS%2FDB.pm;h=a7766531e81ee8f6104e940a8f4ca65a7802b919;hb=a0afb2205afd4fe0ca1e5c52970ccdddc4358f61;hp=984bec0248ba228d0f62e07e676cbec72acf9c74;hpb=1a313952999e5adecf8264b937c23384ccd49f8c;p=id3fs.git diff --git a/lib/ID3FS/DB.pm b/lib/ID3FS/DB.pm index 984bec0..a776653 100644 --- a/lib/ID3FS/DB.pm +++ b/lib/ID3FS/DB.pm @@ -195,13 +195,6 @@ sub relativise # absolute paths have empty first element due to leading / shift(@path) if($path[0] eq ""); shift(@rel) if($rel[0] eq ""); - if($path[0] ne $rel[0]) - { - # no path in common, return absolute - # should never happen - # FIXME - return $name; - } # f: /home/foo/bar/baz.mp3 # r: /home/ianb/music/albums while(@path && @rel && ($path[0] eq $rel[0]))