Commit 6be2b1cc authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Playlist: Remove unused wrapper method

parent 95f68025
......@@ -66,17 +66,12 @@ Playlist::Playlist( MediaLibraryPtr ml, const std::string& name)
std::shared_ptr<Playlist> Playlist::create( MediaLibraryPtr ml, const std::string& name )
{
return createFromFile( ml, name, 0 );
}
std::shared_ptr<Playlist> Playlist::createFromFile( MediaLibraryPtr ml, const std::string& name, int64_t fileId )
{
auto self = std::make_shared<Playlist>( ml, name, fileId );
auto self = std::make_shared<Playlist>( ml, name );
static const std::string req = "INSERT INTO " + policy::PlaylistTable::Name + \
"(name, file_id, creation_date, artwork_mrl) VALUES(?, ?, ?, ?)";
try
{
if ( insert( ml, self, req, name, sqlite::ForeignKey( fileId ), self->m_creationDate, self->m_artworkMrl ) == false )
if ( insert( ml, self, req, name, nullptr, self->m_creationDate, self->m_artworkMrl ) == false )
return nullptr;
return self;
}
......
......@@ -52,7 +52,6 @@ public:
Playlist( MediaLibraryPtr ml, const std::string& name );
static std::shared_ptr<Playlist> create( MediaLibraryPtr ml, const std::string& name );
static std::shared_ptr<Playlist> createFromFile( MediaLibraryPtr ml, const std::string& name, int64_t fileId );
virtual int64_t id() const override;
virtual const std::string& name() const override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment