1
0
Fork 0
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:
Sergey Prigogin 2011-07-21 18:27:37 -07:00
parent fcaa5b68b9
commit b5c36e47a5
4 changed files with 1 additions and 19 deletions

View file

@ -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;

View file

@ -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) {

View file

@ -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.

View 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);