Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop PHP Support
Commits
f7697caf
Commit
f7697caf
authored
Jul 13, 2022
by
Milian Wolff
Browse files
Remove commented out code
This has been commented out for 10 years, apparently it's fine to keep it that way.
parent
2fc54cc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
duchain/helper.cpp
View file @
f7697caf
...
...
@@ -248,31 +248,6 @@ DeclarationPointer findDeclarationInPST(DUContext* currentContext, QualifiedIden
}
TopDUContext
*
top
=
declarations
[
i
].
declaration
()
->
context
()
->
topContext
();
/*
* NOTE:
* To enable PHPUnit test classes, this check has been disabled.
* Formerly it only loaded declarations from open projects, but PHPUnit declarations
* belong to no project.
*
* If this behavior is unwanted, reinstate the check.
* Miha Cancula <miha@noughmad.eu>
*/
/*
if (ICore::self() && !ICore::self()->projectController()->projects().isEmpty()) {
bool loadedProjectContainsUrl = false;
foreach(IProject *project, ICore::self()->projectController()->projects()) {
if (project->fileSet().contains(top->url())) {
loadedProjectContainsUrl = true;
break;
}
}
if (!loadedProjectContainsUrl) {
ifDebug(qCDebug(DUCHAIN) << "skipping declaration, not in loaded project";)
continue;
}
}
*/
currentContext
->
topContext
()
->
addImportedParentContext
(
top
);
currentContext
->
topContext
()
->
parsingEnvironmentFile
()
->
addModificationRevisions
(
top
->
parsingEnvironmentFile
()
->
allModificationRevisions
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment