diff --git a/source/Lib/CommonLib/UnitTools.cpp b/source/Lib/CommonLib/UnitTools.cpp index b13e6e2c9ec3e09ed00f318b8c5e9a8501171410..c132b98163848681d63206a60a62c34881654292 100644 --- a/source/Lib/CommonLib/UnitTools.cpp +++ b/source/Lib/CommonLib/UnitTools.cpp @@ -757,7 +757,6 @@ void PU::getIBCMergeCandidates(const PredictionUnit &pu, MergeCtx& mrgCtx, const return; } - // above const PredictionUnit *puAbove = cs.getPURestricted(posRT.offset(0, -1), pu, pu.chType); bool isAvailableB1 = puAbove && isDiffMER(pu, *puAbove) && pu.cu != puAbove->cu && CU::isIBC(*puAbove->cu); @@ -790,8 +789,6 @@ void PU::getIBCMergeCandidates(const PredictionUnit &pu, MergeCtx& mrgCtx, const return; } - int spatialCandPos = cnt; - if (cnt != maxNumMergeCand) { #if !JVET_P0400_REMOVE_SHARED_MERGE_LIST @@ -814,7 +811,6 @@ void PU::getIBCMergeCandidates(const PredictionUnit &pu, MergeCtx& mrgCtx, const } } - while (cnt < maxNumMergeCand) { mrgCtx.mvFieldNeighbours[cnt * 2].setMvField(Mv(0, 0), MAX_NUM_REF); @@ -827,7 +823,6 @@ void PU::getIBCMergeCandidates(const PredictionUnit &pu, MergeCtx& mrgCtx, const } mrgCtx.numValidMergeCand = cnt; - } void PU::getInterMergeCandidates( const PredictionUnit &pu, MergeCtx& mrgCtx, @@ -1001,8 +996,6 @@ void PU::getInterMergeCandidates( const PredictionUnit &pu, MergeCtx& mrgCtx, return; } - int spatialCandPos = cnt; - // above right const PredictionUnit *puAboveRight = cs.getPURestricted( posRT.offset( 1, -1 ), pu, pu.chType );