[libcalamares] Remove useless variable

- describe() is for debugging purposes, doesn't need to calculate
  whether the requirements are accepted.
This commit is contained in:
Adriaan de Groot 2020-10-24 12:35:19 +02:00
parent 6c7d295712
commit b28a50de6f

View File

@ -85,16 +85,11 @@ void
RequirementsModel::describe() const
{
cDebug() << "Requirements model has" << m_requirements.count() << "items";
bool acceptable = true;
int count = 0;
for ( const auto& r : m_requirements )
{
cDebug() << Logger::SubEntry << "requirement" << count << r.name << "satisfied?" << r.satisfied << "mandatory?"
<< r.mandatory;
if ( r.mandatory && !r.satisfied )
{
acceptable = false;
}
++count;
}
}