[luksBootKeyFile] Remove unused function hasEncryptedRoot()
This commit is contained in:
parent
ab8159a77f
commit
b5e0ebe4c9
@ -242,13 +242,6 @@ hasUnencryptedSeparateBoot()
|
||||
{ return hasMountPoint( partition, QStringLiteral( "/boot" ) ) && !isEncrypted( partition ); } );
|
||||
}
|
||||
|
||||
STATICTEST bool
|
||||
hasEncryptedRoot()
|
||||
{
|
||||
return anyPartition( []( const QVariantMap& partition )
|
||||
{ return hasMountPoint( partition, QStringLiteral( "/" ) ) && isEncrypted( partition ); } );
|
||||
}
|
||||
|
||||
Calamares::JobResult
|
||||
LuksBootKeyFileJob::exec()
|
||||
{
|
||||
|
@ -158,7 +158,6 @@ LuksBootKeyFileTests::testAnyPartition()
|
||||
{ return hasMountPoint( partdata, QStringLiteral( "/" ) ); } ) );
|
||||
QVERIFY( !anyPartition( []( const QVariantMap& partdata ) { return hasMountPoint( partdata, QString() ); } ) );
|
||||
|
||||
QVERIFY( !hasEncryptedRoot() );
|
||||
QVERIFY( hasUnencryptedSeparateBoot() );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user