[luksBootKeyFile] Remove unused function hasEncryptedRoot()

This commit is contained in:
dalto 2023-08-26 14:15:18 -05:00
parent ab8159a77f
commit b5e0ebe4c9
2 changed files with 1 additions and 9 deletions

View File

@ -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()
{

View File

@ -158,7 +158,6 @@ LuksBootKeyFileTests::testAnyPartition()
{ return hasMountPoint( partdata, QStringLiteral( "/" ) ); } ) );
QVERIFY( !anyPartition( []( const QVariantMap& partdata ) { return hasMountPoint( partdata, QString() ); } ) );
QVERIFY( !hasEncryptedRoot() );
QVERIFY( hasUnencryptedSeparateBoot() );
}