Skip to content

fixed some CLion inspection warnings#4688

Merged
firewave merged 7 commits into
cppcheck-opensource:mainfrom
firewave:unused-2
Apr 28, 2023
Merged

fixed some CLion inspection warnings#4688
firewave merged 7 commits into
cppcheck-opensource:mainfrom
firewave:unused-2

Conversation

@firewave

@firewave firewave commented Jan 6, 2023

Copy link
Copy Markdown
Collaborator

I am open to keeping some things but I had these changes sitting in a branch for well over a year now and those things are still not used yet so it should be fair game to remove them.

@firewave firewave changed the title removed some unused code found by CLion "Unused global declaration" inspection fixed some CLion inspection warnings Jan 26, 2023
Comment thread gui/projectfiledialog.cpp
mUI->mComboBoxPlatform->setCurrentText(projectFile->getPlatform());
setSuppressions(projectFile->getSuppressions());

// TODO

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why not remove the comment block?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Because I didn't look into why it is commented.

Comment thread gui/projectfile.h
QStringList getCheckUnknownFunctionReturn() const {
return mCheckUnknownFunctionReturn;
}
void setCheckUnknownFunctionReturn(const QStringList &s) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is this a comment?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Because the code which uses it is commented out. It's the one I added the TODO to.

@firewave firewave merged commit b3016f0 into cppcheck-opensource:main Apr 28, 2023
@firewave firewave deleted the unused-2 branch April 28, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants