-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(behavior_velocity_no_stopping_area_module): cppcheck warnings #6986
refactor(behavior_velocity_no_stopping_area_module): cppcheck warnings #6986
Conversation
Signed-off-by: Ryuta Kambe <[email protected]>
Signed-off-by: Ryuta Kambe <[email protected]>
Signed-off-by: Ryuta Kambe <[email protected]>
@veqcc Other fixes looks goooooood to me! |
thanks! Is it ok to check only debug.cpp? And other modules in behavior veclocity planner has same structure and fuctions. Do you have any idea why only no_stopping_area module got the |
You are right 👍
Actualy, there are similar |
@veqcc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I will fix the build warning later |
@kosuke55 Here, I have deleted
|
planning/behavior_velocity_no_stopping_area_module/src/scene_no_stopping_area.cpp
Show resolved
Hide resolved
2e41fe1
to
9e76436
Compare
The change was made in the PR #6517 here and I checked with @kaigohirao san. dist_from_area_sum was already no longer needed, so you can delete them. |
@kosuke55 Now, my question is this:
|
9e76436
to
0eb34eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@veqcc
We will work on the issue in other PR.
LGTM for your PR. Thank you!
autowarefoundation#6986) * remove redundant if branch Signed-off-by: Ryuta Kambe <[email protected]> * remove unused variable Signed-off-by: Ryuta Kambe <[email protected]> * remove redundant initialization Signed-off-by: Ryuta Kambe <[email protected]> --------- Signed-off-by: Ryuta Kambe <[email protected]>
Description
I have made several chages based on CppCheck warnings.
Some commits are irrelevant to CppCheck.
e0e49be
remove unused variable
021129a
remove redundant initialization
0eb34eb
9e76436
Question
I have one question: there seems to be several unused functions in debug.cpp.
Is it intentional? If not, it looks it's better to delete them in terms of maintenance and readbility.
Tests performed
No
Effects on system behavior
Interface changes
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.