SongUpdate: remove obsolete overload UpdateFileInArchive(Storage)
This commit is contained in:
parent
32f6d34904
commit
a670ff6d3e
@ -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
|
||||
|
@ -117,8 +117,6 @@ struct Song {
|
||||
const char *name_utf8,
|
||||
Directory &parent);
|
||||
bool UpdateFileInArchive(ArchiveFile &archive);
|
||||
|
||||
bool UpdateFileInArchive(const Storage &storage);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user