mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 351271. Code simplification suggested by Markus Schorn.
This commit is contained in:
parent
fcaa5b68b9
commit
b5c36e47a5
4 changed files with 1 additions and 19 deletions
|
@ -74,11 +74,6 @@ public class StandaloneIndexerInputAdapter extends IndexerInputAdapter {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIndexedUnconditionally(Object tu) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIndexedUnconditionally(IIndexFileLocation ifl) {
|
||||
return false;
|
||||
|
|
|
@ -485,7 +485,7 @@ public abstract class AbstractIndexerTask extends PDOMWriter {
|
|||
final boolean isExcludedSource= isSourceUnit && !fIndexFilesWithoutConfiguration && !fResolver.isFileBuildConfigured(tu);
|
||||
|
||||
if ((isSourceUnit && !isExcludedSource) || fIndexHeadersWithoutContext != UnusedHeaderStrategy.skip ||
|
||||
fResolver.isIndexedUnconditionally(tu)) {
|
||||
fResolver.isIndexedUnconditionally(ifl)) {
|
||||
// Headers or sources required with a specific linkage
|
||||
AbstractLanguage[] langs= fResolver.getLanguages(tu, fIndexHeadersWithoutContext == UnusedHeaderStrategy.useBoth);
|
||||
for (AbstractLanguage lang : langs) {
|
||||
|
|
|
@ -55,13 +55,6 @@ public abstract class IndexerInputAdapter extends ASTFilePathResolver {
|
|||
*/
|
||||
public abstract boolean isIndexedOnlyIfIncluded(Object tu);
|
||||
|
||||
/**
|
||||
* Checks whether the given translation unit should be indexed unconditionally.
|
||||
* @param tu An ITranslationUnit or a file location in String form.
|
||||
* @return {@code true} if the translation unit should be indexed unconditionally.
|
||||
*/
|
||||
public abstract boolean isIndexedUnconditionally(Object tu);
|
||||
|
||||
/**
|
||||
* Checks whether the given file should be indexed unconditionally.
|
||||
* @param ifl The Location of the file.
|
||||
|
|
|
@ -242,12 +242,6 @@ public class ProjectIndexerInputAdapter extends IndexerInputAdapter {
|
|||
return tu instanceof PotentialTranslationUnit;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIndexedUnconditionally(Object tuo) {
|
||||
ITranslationUnit tu= (ITranslationUnit) tuo;
|
||||
return isIndexedUnconditionally(IndexLocationFactory.getIFL(tu));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIndexedUnconditionally(IIndexFileLocation ifl) {
|
||||
return CCoreInternals.getPDOMManager().isFileIndexedUnconditionally(ifl);
|
||||
|
|
Loading…
Add table
Reference in a new issue