Skip to content

Remove unreachable code in DefaultConvergenceCriteria - #1967

Merged
taketwo merged 2 commits into
PointCloudLibrary:masterfrom
jasjuang:master
Aug 22, 2017
Merged

Remove unreachable code in DefaultConvergenceCriteria#1967
taketwo merged 2 commits into
PointCloudLibrary:masterfrom
jasjuang:master

Conversation

@jasjuang

Copy link
Copy Markdown
Contributor

which causes compilation warnings in Visual Studio

@@ -59,7 +59,6 @@ pcl::registration::DefaultConvergenceCriteria<Scalar>::hasConverged ()
convergence_state_ = CONVERGENCE_CRITERIA_ITERATIONS;
return (true);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For readability reasons, it would be good to also remove the wrapping else {}. See https://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html

@jasjuang

Copy link
Copy Markdown
Contributor Author

@jolesinski updated as requested!

@taketwo
taketwo merged commit 405d2bb into PointCloudLibrary:master Aug 22, 2017
UnaNancyOwen pushed a commit to UnaNancyOwen/pcl that referenced this pull request Nov 24, 2017
Remove unreachable code in registration::DefaultConvergenceCriteria
@taketwo taketwo changed the title remove unreachable code Remove unreachable code in DefaultConvergenceCriteria Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants