changeset 4734:50cd62d85ead

cleanups: Remove unnecessary reset. If refIdx is set to NOT_VALID, mv will not be used. Hence resetting MVs to 0 can be safely removed.
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Tue, 29 Oct 2013 15:26:50 +0530
parents 6552629b45c5
children deac0d819c43
files source/Lib/TLibCommon/TComMotionInfo.cpp
diffstat 1 files changed, 0 insertions(+-), 6 deletions(-) [+]
line wrap: on
line diff
--- a/source/Lib/TLibCommon/TComMotionInfo.cpp	Tue Oct 29 15:22:28 2013 +0530
+++ b/source/Lib/TLibCommon/TComMotionInfo.cpp	Tue Oct 29 15:26:50 2013 +0530
@@ -89,12 +89,6 @@ void TComCUMvField::destroy()
 
 void TComCUMvField::clearMvField()
 {
-    for (int i = 0; i < m_numPartitions; i++)
-    {
-        m_mv[i] = 0;
-        m_mvd[i] = 0;
-    }
-
     assert(sizeof(*m_refIdx) == 1);
     memset(m_refIdx, NOT_VALID, m_numPartitions * sizeof(*m_refIdx));
 }