Skip to content

Commit

Permalink
Remove unnecessary 0 setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood committed Jan 4, 2018
1 parent f5c7bab commit df6dfd4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rviz/validate_quaternions.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ inline float normalizeQuaternion( float& w, float& x, float& y, float& z )
if ( 0.0f == x && 0.0f == y && 0.0f == z && 0.0f == w )
{
w = 1.0f;
x = y = z = 0.0f;
return 0.0f;
}
float norm2 = quaternionNorm2( w, x, y, z );
Expand Down Expand Up @@ -104,7 +103,6 @@ inline double normalizeQuaternion( double& w, double& x, double& y, double& z )
if ( 0.0 == x && 0.0 == y && 0.0 == z && 0.0 == w )
{
w = 1.0;
x = y = z = 0.0;
return 0.0;
}
double norm2 = quaternionNorm2( w, x, y, z );
Expand Down

0 comments on commit df6dfd4

Please sign in to comment.