db/simple/Song: remove static method NewFile()

This commit is contained in:
Max Kellermann
2019-09-04 11:24:44 +02:00
parent 6a13847287
commit 497d090814
3 changed files with 2 additions and 12 deletions
-6
View File
@@ -48,12 +48,6 @@ Song::NewFrom(DetachedSong &&other, Directory &parent) noexcept
return song;
}
SongPtr
Song::NewFile(const char *path, Directory &parent) noexcept
{
return SongPtr(song_alloc(path, parent));
}
std::string
Song::GetURI() const noexcept
{
-3
View File
@@ -101,9 +101,6 @@ struct Song {
static SongPtr NewFrom(DetachedSong &&other, Directory &parent) noexcept;
/** allocate a new song with a local file name */
static SongPtr NewFile(const char *path_utf8, Directory &parent) noexcept;
/**
* allocate a new song structure with a local file name and attempt to
* load its metadata. If all decoder plugin fail to read its meta