Cleanup: Replaced unneeded branch with assert.

This commit is contained in:
Jeroen Bakker
2021-03-26 10:40:27 +01:00
parent fb6c29f59c
commit e867f40611

View File

@@ -20,6 +20,8 @@
#include "COM_defines.h"
#include <cstdio>
#include "BLI_assert.h"
CompositorContext::CompositorContext()
{
this->m_scene = nullptr;
@@ -33,9 +35,6 @@ CompositorContext::CompositorContext()
int CompositorContext::getFramenumber() const
{
if (this->m_rd) {
return this->m_rd->cfra;
}
return -1; /* this should never happen */
BLI_assert(m_rd);
return m_rd->cfra;
}