[libcalamares] Remove unused parameter for PythonJob

- parameter instanceKey was left over from previous work that
  special-cased the weight of Python modules.
- while here, consistently do `~T() override`
This commit is contained in:
Adriaan de Groot 2020-09-22 21:54:10 +02:00
parent 8e9bf1c2a9
commit fbab554dfa
3 changed files with 4 additions and 6 deletions

View File

@ -160,8 +160,7 @@ struct PythonJob::Private
bp::object m_prettyStatusMessage;
};
PythonJob::PythonJob( const ModuleSystem::InstanceKey& instance,
const QString& scriptFile,
PythonJob::PythonJob( const QString& scriptFile,
const QString& workingPath,
const QVariantMap& moduleConfiguration,
QObject* parent )

View File

@ -31,12 +31,11 @@ class PythonJob : public Job
{
Q_OBJECT
public:
explicit PythonJob( const ModuleSystem::InstanceKey& instance,
const QString& scriptFile,
explicit PythonJob( const QString& scriptFile,
const QString& workingPath,
const QVariantMap& moduleConfiguration = QVariantMap(),
QObject* parent = nullptr );
virtual ~PythonJob() override;
~PythonJob() override;
QString prettyName() const override;
QString prettyStatusMessage() const override;

View File

@ -40,7 +40,7 @@ PythonJobModule::loadSelf()
return;
}
m_job = Calamares::job_ptr( new PythonJob( instanceKey(), m_scriptFileName, m_workingPath, m_configurationMap ) );
m_job = Calamares::job_ptr( new PythonJob( m_scriptFileName, m_workingPath, m_configurationMap ) );
m_loaded = true;
}