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] Remove TagsManager::AreTheSame/Language::FunctionFromPattern #3581

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Jan 30, 2025

which always return false.

And then empty functions.

…tern` which always return `false`.

And then empty functions.
@@ -64,17 +64,7 @@ wxString CppCommentCreator::FunctionComment()
for(size_t i = 0; i < tags.size(); i++)
comment << wxT(" * ") << m_keyPrefix << wxT("param ") << tags.at(i)->GetName() << wxT("\n");

if(m_tag->GetKind() == wxT("function")) {
clFunction f;
if(lang->FunctionFromPattern(m_tag, f)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Always false, so dead code.

@@ -215,9 +214,6 @@ void clCallTip::FormatTagsToTips(const TagEntryPtrVector_t& tags, std::vector<cl

wxString raw_sig(t->GetSignature().Trim().Trim(false));

// evaluate the return value of the tag
cti.retValue = TagsManagerST::Get()->GetFunctionReturnValueFromPattern(t);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

returned always wxEmptyString

wxString TagsManager::FormatFunction(TagEntryPtr tag, size_t flags, const wxString& scope)
{
clFunction foo;
if(!GetLanguage()->FunctionFromPattern(tag, foo)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Always false, so return always wxEmptyString

// evaluate the return value of the tag
clFunction foo;
wxString return_value;
if(GetLanguage()->FunctionFromPattern(tag, foo)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Always false, so return always wxEmptyString

@@ -177,10 +177,6 @@ void SymbolTree::BuildTree(const wxFileName& fileName, const TagEntryPtrVector_t
// Load the new tags from the database
db->SelectTagsByFile(fileName.GetFullPath(), newTags);

// Compare the new tags with the old ones
if(!forceBuild && TagsManagerST::Get()->AreTheSame(newTags, m_currentTags))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Always false, so dead code.

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.

1 participant