-
Notifications
You must be signed in to change notification settings - Fork 468
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
base: master
Are you sure you want to change the base?
Conversation
…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)) { |
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.
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); |
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.
returned always wxEmptyString
wxString TagsManager::FormatFunction(TagEntryPtr tag, size_t flags, const wxString& scope) | ||
{ | ||
clFunction foo; | ||
if(!GetLanguage()->FunctionFromPattern(tag, foo)) { |
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.
Always false, so return always wxEmptyString
// evaluate the return value of the tag | ||
clFunction foo; | ||
wxString return_value; | ||
if(GetLanguage()->FunctionFromPattern(tag, foo)) { |
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.
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)) |
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.
Always false, so dead code.
which always return
false
.And then empty functions.