Skip to content
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

[cleanup] Code removal of unused code #3537

Merged
merged 19 commits into from
Dec 28, 2024
Merged

Conversation

Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Nov 19, 2024

No description provided.

@eranif
Copy link
Owner

eranif commented Nov 21, 2024

Out of curiosity, are you using some kind of a tool to detect dead code?

@Jarod42
Copy link
Contributor Author

Jarod42 commented Nov 22, 2024

I now use my own tool ccccc (based on llvm tooling) which collects generic metrics but also caller/call count.
I also have some "issues" with template/virtual methods (and also main :) ) to decide and have correct count.
but except that, I got accurate stats for regular functions never called.

I create a github workflow https://github.com/Jarod42/codelite/blob/ccccc/.github/workflows/ccccc.yml to collect the data (not entirely automated, I do manual changes afterward to fix internal path)

In my TODO list, I planned to

  • split the dead-code detection in dedicated tool
  • integrate my tools as codelite plugin :)

- FileUtils::GetOSXTerminalCommand
- FileUtils::SplitWords
- FileUtils::OpenBuiltInTerminal
- FileUtils::ParseURI
- FileUtils::EscapeString
- IsWordChar
- TokenizeWords
- class PPTable
- TemplateHelper::SetTemplateDeclaration(const wxString&)
- TemplateHelper::SetTemplateInstantiation(const wxArrayString&)
- ascendingSortOp
- WizardsPlugin::GizmosRemoveDuplicates
- WizardsPlugin::BulkRead
- WizardsPlugin::BulkWrite
- IHunSpell::IsTag
- IHunSpell::GetCharacterEncoding
- IHunSpell::AddWord
- clPlatform::GetOS
- clPlatform::DirSeparator
- clPlatform::eOS
and add const for clPlatform::PathSeparator
- WebToolsConfig::GetTernProjectFile
- WebToolsConfig::IsNodeInstalled
- WebToolsConfig::IsNpmInstalled
- WebToolsConfig::GetTernScript
- WebToolsConfig::IsTernInstalled
- WebToolsConfig::GetTempFolder
- WebTools::IsJavaScriptFile
- WebTools::InsideJSString
- ContextCpp::GetFileImageString
- ContextCpp::GetImageString
- ContextCpp::RemoveDuplicates
- ContextCpp::GetWordUnderCaret
- ContextCpp::DisplayFilesCompletionBox
- ContextCpp::ReplaceInFiles
- ContextCpp::MakeCppKeywordsTags
- ContextCpp::DoOpenWorkspaceFile
- ContextCpp::DoGetSingatureRange
- CompilerCommandLineParser::GetCompileLine
- CompilerCommandLineParser::MakeAbsolute
- clConsoleEnvironment::clConsoleEnvironment()
- clConsoleEnvironment::Add
@eranif eranif merged commit 3a0f997 into eranif:master Dec 28, 2024
4 checks passed
@Jarod42 Jarod42 deleted the code_removal branch December 29, 2024 08:01
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