Skip to content

Commit

Permalink
Remove a dead store from rawdata.cc.
Browse files Browse the repository at this point in the history
It looks like probably the result of a bad merge; the distance
variable is never used in the outer scope, so just remove it.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette authored and Joshua Whitley committed Jul 3, 2019
1 parent 0737cf0 commit 96b3905
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions velodyne_pointcloud/src/lib/rawdata.cc
Expand Up @@ -200,9 +200,6 @@ inline float SQR(float val) { return val*val; }
continue;
}

float distance = tmp.uint * calibration_.distance_resolution_m;
distance += corrections.dist_correction;

/*condition added to avoid calculating points which are not
in the interesting defined area (min_angle < area < max_angle)*/
if ((block.rotation >= config_.min_angle
Expand Down

0 comments on commit 96b3905

Please sign in to comment.