Inline redundant local variables.

This commit is contained in:
Karsten Loesing 2018-08-21 14:09:58 +02:00
parent 21277083a8
commit e04eec7cb7

View File

@ -241,9 +241,7 @@ public class Parser {
private long removeNoise(long reportedNumber, long binSize) {
long roundedToNearestRightSideOfTheBin =
Math.floorDiv((reportedNumber + binSize / 2), binSize) * binSize;
long subtractedHalfOfBinSize =
roundedToNearestRightSideOfTheBin - binSize / 2;
return subtractedHalfOfBinSize;
return roundedToNearestRightSideOfTheBin - binSize / 2;
}
/** Parses the given consensus. */