System : Avoid creating unused variable

This commit is contained in:
Magne Sjaastad 2019-01-17 07:37:09 +01:00
parent e75362f87e
commit 84b0a23512

View File

@ -315,8 +315,7 @@ void RiuViewer::mouseReleaseEvent(QMouseEvent* event)
//--------------------------------------------------------------------------------------------------
void RiuViewer::slotEndAnimation()
{
cvf::Rendering* firstRendering = m_mainRendering.p();
CVF_ASSERT(firstRendering);
CVF_ASSERT(m_mainRendering.notNull());
if (m_rimView) m_rimView->endAnimation();
@ -765,8 +764,7 @@ void RiuViewer::navigationPolicyUpdate()
//--------------------------------------------------------------------------------------------------
void RiuViewer::setCurrentFrame(int frameIndex)
{
cvf::Rendering* firstRendering = m_mainRendering.p();
CVF_ASSERT(firstRendering);
CVF_ASSERT(m_mainRendering.notNull());
if (m_rimView) m_rimView->setCurrentTimeStepAndUpdate(frameIndex);