SongUpdate: remove obsolete overload UpdateFileInArchive(Storage)

This commit is contained in:
Max Kellermann 2016-02-26 15:06:16 +01:00
parent 32f6d34904
commit a670ff6d3e
2 changed files with 0 additions and 28 deletions

View File

@ -138,32 +138,6 @@ Song::UpdateFileInArchive(ArchiveFile &archive)
return true;
}
bool
Song::UpdateFileInArchive(const Storage &storage)
{
/* check if there's a suffix and a plugin */
const char *suffix = uri_get_suffix(uri);
if (suffix == nullptr)
return false;
if (!decoder_plugins_supports_suffix(suffix))
return false;
const auto path_fs = parent->IsRoot()
? storage.MapFS(uri)
: storage.MapChildFS(parent->GetPath(), uri);
if (path_fs.IsNull())
return false;
TagBuilder tag_builder;
if (!tag_archive_scan(path_fs, tag_builder))
return false;
tag_builder.Commit(tag);
return true;
}
#endif
bool

View File

@ -117,8 +117,6 @@ struct Song {
const char *name_utf8,
Directory &parent);
bool UpdateFileInArchive(ArchiveFile &archive);
bool UpdateFileInArchive(const Storage &storage);
#endif
/**