[apps/calculationStore] Remove falty assertion

This commit is contained in:
Léa Saviot
2019-08-01 14:03:08 +02:00
committed by Émilie Feral
parent 2c783fe630
commit dfe74dc1cb

View File

@@ -133,7 +133,9 @@ void CalculationStore::deleteCalculationAtIndex(int i) {
}
void CalculationStore::deleteAll() {
assert(!m_slidedBuffer);
/* We might call deleteAll because the app closed due to a pool allocation
* failure, so we cannot assert that m_slidedBuffer is false. */
m_slidedBuffer = false;
m_bufferEnd = m_buffer;
m_numberOfCalculations = 0;
resetMemoizedModelsAfterCalculationIndex(-1);