diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 6bcfe344b..83a562677 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -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 diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx index 349aafb5c..ac5485ea7 100644 --- a/src/db/plugins/simple/Song.hxx +++ b/src/db/plugins/simple/Song.hxx @@ -117,8 +117,6 @@ struct Song { const char *name_utf8, Directory &parent); bool UpdateFileInArchive(ArchiveFile &archive); - - bool UpdateFileInArchive(const Storage &storage); #endif /**