Commit 112ca834 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MetadataParser: Remove now unused fsFactory attribute

parent a624af50
......@@ -465,7 +465,7 @@ void MediaLibrary::startParser()
});
auto vlcService = std::unique_ptr<VLCMetadataService>( new VLCMetadataService( m_vlcInstance ) );
auto metadataService = std::unique_ptr<MetadataParser>( new MetadataParser( m_dbConnection.get(), m_fsFactory ) );
auto metadataService = std::unique_ptr<MetadataParser>( new MetadataParser( m_dbConnection.get() ) );
auto thumbnailerService = std::unique_ptr<VLCThumbnailer>( new VLCThumbnailer( m_vlcInstance ) );
m_parser->addService( std::move( vlcService ) );
m_parser->addService( std::move( metadataService ) );
......
......@@ -30,9 +30,8 @@
#include "Show.h"
#include "utils/Filename.h"
MetadataParser::MetadataParser( DBConnection dbConnection, std::shared_ptr<factory::IFileSystem> fsFactory)
MetadataParser::MetadataParser( DBConnection dbConnection )
: m_dbConn( dbConnection )
, m_fsFactory( fsFactory )
{
}
......
......@@ -30,7 +30,7 @@ class AlbumTrack;
class MetadataParser : public ParserService
{
public:
MetadataParser( DBConnection dbConnection, std::shared_ptr<factory::IFileSystem> fsFactory );
MetadataParser( DBConnection dbConnection );
protected:
virtual bool initialize() override;
virtual parser::Task::Status run( parser::Task& task ) override;
......@@ -49,6 +49,4 @@ private:
MediaLibrary* m_ml;
std::shared_ptr<Artist> m_unknownArtist;
DBConnection m_dbConn;
std::shared_ptr<factory::IFileSystem> m_fsFactory;
};
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