diff -r 2b4ea9893b66 -r 6b6920c56e2f locationtriggering/ltcellidmovementdetector/src/lbtcellidmvmtdet.cpp --- a/locationtriggering/ltcellidmovementdetector/src/lbtcellidmvmtdet.cpp Tue Aug 31 15:37:04 2010 +0300 +++ b/locationtriggering/ltcellidmovementdetector/src/lbtcellidmvmtdet.cpp Wed Sep 01 12:24:21 2010 +0100 @@ -239,11 +239,7 @@ TReal ed = 0.0; if( KErrNotFound != ComputeED( ed, cellInfo, iPrevCellInfo ) ) { - TInt error = iED.Append( ed ); - if( error != KErrNone ) - { - LOG1("Failed to append ed to the array:%d",error); - } + iED.Append( ed ); iSumOfED += ed; if( iED.Count() == 5 ) { @@ -377,16 +373,8 @@ return ETrue; } - TInt error = iSumOfSd.Append( sumOfSd ); - if( error != KErrNone ) - { - LOG1("Append sumOfSd to the array:%d",error); - } - error = iVarianceOfRssi.Append( aCarrierRSSISD ); - if( error != KErrNone ) - { - LOG1("Append aCarrierRSSISD to the array:%d",error); - } + iSumOfSd.Append( sumOfSd ); + iVarianceOfRssi.Append( aCarrierRSSISD ); if( iSumOfSd.Count() == 3 ) { TReal sumAvg = 0.0; @@ -501,16 +489,8 @@ TInt diff = ( ( aPrevCellInfo->GetNMR() )[pos].RxLEV ) - ( nmr.RxLEV ); Math::Pow( diffSqr, diff, 2 ); - TInt error = diffArray.Append( diffSqr ); - if( error != KErrNone ) - { - LOG1("Failed to append to diff array:%d",error); - } - error = posArray.Append( pos ); - if( error !=KErrNone ) - { - LOG1("Failed to append to pos array:%d",error); - } + diffArray.Append( diffSqr ); + posArray.Append( pos ); } else { @@ -576,12 +556,7 @@ iED.Reset(); TReal variance = sum / 5; - TInt error = iVarianceOfED.Append( variance ); - if( error != KErrNone ) - { - LOG1("Failed to append variance:%d",error); - } - + iVarianceOfED.Append( variance ); // Check if variance is > 5. If true then check the next set of // 5 variances. If there are more than two variance readings > 5