From a670ff6d3e8270e15d6549b37fcd993182a6cb7b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Feb 2016 15:06:16 +0100 Subject: [PATCH] SongUpdate: remove obsolete overload UpdateFileInArchive(Storage) --- src/SongUpdate.cxx | 26 -------------------------- src/db/plugins/simple/Song.hxx | 2 -- 2 files changed, 28 deletions(-) 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 /**