Use free functions (I wish I had known I can do this)

main
Chrysostomus 4 years ago
parent 8676ce9a20
commit 09798a2a12

@ -131,7 +131,7 @@ setupLuks( const LuksDevice& d )
// static
QVariantList
LuksBootKeyFileJob::partitions()
partitions()
{
Calamares::GlobalStorage* globalStorage = Calamares::JobQueue::instance()->globalStorage();
return globalStorage->value( QStringLiteral( "partitions" ) ).toList();
@ -139,9 +139,9 @@ LuksBootKeyFileJob::partitions()
// static
bool
LuksBootKeyFileJob::hasUnencryptedSeparateBoot()
hasUnencryptedSeparateBoot()
{
const QVariantList partitions = LuksBootKeyFileJob::partitions();
const QVariantList partitions = partitions();
for ( const QVariant& partition : partitions )
{
QVariantMap partitionMap = partition.toMap();

@ -30,9 +30,6 @@ public:
QString prettyName() const override;
Calamares::JobResult exec() override;
private:
static QVariantList partitions();
static bool hasUnencryptedSeparateBoot();
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( LuksBootKeyFileJobFactory )

Loading…
Cancel
Save