Remove unnecessary conditional

This commit is contained in:
Jack Andersen 2016-05-21 12:18:15 -10:00
parent 53f4e32c46
commit 0a049645d8
1 changed files with 3 additions and 7 deletions

View File

@ -53,7 +53,6 @@ public:
m_curSlewFrame = 0; m_curSlewFrame = 0;
for (int i=0 ; i<8 ; ++i) for (int i=0 ; i<8 ; ++i)
{ {
if (m_curSlewFrame == m_slewFrames)
m_oldCoefs[i] = m_coefs[i]; m_oldCoefs[i] = m_coefs[i];
m_coefs[i] = coefs[i]; m_coefs[i] = coefs[i];
} }
@ -82,12 +81,9 @@ public:
m_slewFrames = slewFrames; m_slewFrames = slewFrames;
m_curSlewFrame = 0; m_curSlewFrame = 0;
for (int i=0 ; i<8 ; ++i) for (int i=0 ; i<8 ; ++i)
{
if (m_curSlewFrame == m_slewFrames)
{ {
m_oldCoefs[i][0] = m_coefs[i][0]; m_oldCoefs[i][0] = m_coefs[i][0];
m_oldCoefs[i][1] = m_coefs[i][1]; m_oldCoefs[i][1] = m_coefs[i][1];
}
m_coefs[i][0] = coefs[i][0]; m_coefs[i][0] = coefs[i][0];
m_coefs[i][1] = coefs[i][1]; m_coefs[i][1] = coefs[i][1];
} }