Use free functions (I wish I had known I can do this)
This commit is contained in:
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…
Reference in New Issue
Block a user