mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
No need for MusicScanner's showProgress setting.
This commit is contained in:
@@ -35,8 +35,6 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
void
|
||||
@@ -139,7 +137,6 @@ MusicScanner::MusicScanner( MusicScanner::ScanMode scanMode, const QStringList&
|
||||
, m_scanMode( scanMode )
|
||||
, m_paths( paths )
|
||||
, m_scanned( 0 )
|
||||
, m_showProgress( true )
|
||||
, m_dryRun( false )
|
||||
, m_verbose( false )
|
||||
, m_cmdQueue( 0 )
|
||||
@@ -164,20 +161,6 @@ MusicScanner::~MusicScanner()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MusicScanner::showProgress( bool _showProgress )
|
||||
{
|
||||
m_showProgress = _showProgress;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
MusicScanner::showingProgress()
|
||||
{
|
||||
return m_showProgress;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MusicScanner::setDryRun( bool _dryRun )
|
||||
{
|
||||
|
@@ -107,9 +107,6 @@ public:
|
||||
MusicScanner( MusicScanner::ScanMode scanMode, const QStringList& paths, quint32 bs = 0 );
|
||||
~MusicScanner();
|
||||
|
||||
void showProgress( bool _showProgress );
|
||||
bool showingProgress();
|
||||
|
||||
/**
|
||||
* Specify if we want a dry run, i.e. not change any of the internal data stores.
|
||||
*
|
||||
@@ -153,7 +150,6 @@ private:
|
||||
QStringList m_paths;
|
||||
unsigned int m_scanned;
|
||||
unsigned int m_skipped;
|
||||
bool m_showProgress;
|
||||
bool m_dryRun;
|
||||
bool m_verbose;
|
||||
|
||||
|
@@ -47,7 +47,6 @@ main( int argc, char* argv[] )
|
||||
MusicScanner scanner( MusicScanner::DirScan, paths, 0 );
|
||||
|
||||
// We want a dry-run of the scanner and not update any internal data.
|
||||
scanner.showProgress( false );
|
||||
scanner.setDryRun( true );
|
||||
scanner.setVerbose( true );
|
||||
|
||||
@@ -68,4 +67,3 @@ main( int argc, char* argv[] )
|
||||
std::cerr << "Unknown path (type) given, cannot handle this." << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user