-
Notifications
You must be signed in to change notification settings - Fork 682
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
fix(tier4_state_rviz_plugin): fix unusedFunction #8608
fix(tier4_state_rviz_plugin): fix unusedFunction #8608
Conversation
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8608 +/- ##
=======================================
Coverage 24.06% 24.07%
=======================================
Files 1398 1398
Lines 102639 102633 -6
Branches 39023 39023
=======================================
Hits 24704 24704
+ Misses 75403 75397 -6
Partials 2532 2532
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@kobayu858 I think these are functions called by the Qt framework. Did the UI appearance in rviz remain the same? |
A lot of those have a passive automatic call by Qt that is being overridden by being recreated in the custom component, others are there as these are generic components in case of re-use and being needed later i think it's not necessary to remove them for potential later use in this or other panels @isamu-takagi |
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Thanks for the advice. I removed setCornerRadius, getCornerRadius, and setColors as they do not seem to be used. The above three functions are treated as functions that are declared but not defined, such as setContainerWidth, and the declarations are left in hpp. |
@kobayu858 Thank you for updating. Could you please remove the declaration from the header as it would be confusing to readers? The other parts are fine. |
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
@isamu-takagi |
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
…8608) * fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:clang format Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom button Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom container Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom icon label Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom label Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom segment button Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom slider Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom toggle switch Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom label Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:add blank line Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom botton item Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:remove declaration Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> --------- Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
…8608) * fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:clang format Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom button Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom container Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom icon label Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom label Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom segment button Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom slider Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom toggle switch Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom label Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:add blank line Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:revert custom botton item Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> * fix:remove declaration Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp> --------- Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
Description
This is a fix based on cppcheck unusedFunction warnings.
Related links
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.