Get rid of CheckUndefinedSymbol::Use.

This commit is contained in:
Roberto Raggi
2010-07-05 17:43:13 +02:00
parent 04960f9d3d
commit 2ee75bac8c
2 changed files with 5 additions and 12 deletions

View File

@@ -2062,11 +2062,9 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
if (TranslationUnit *unit = doc->translationUnit()) {
CheckUndefinedSymbols checkUndefinedSymbols(unit, context);
diagnosticMessages = checkUndefinedSymbols(unit->ast());
typeUsages.clear();
foreach (const CheckUndefinedSymbols::Use &use, checkUndefinedSymbols.typeUsages()) // ### remove me
typeUsages.append(SemanticInfo::Use(use.line, use.column, use.length));
typeUsages = checkUndefinedSymbols.typeUsages();
FindObjCKeywords findObjCKeywords(unit);
FindObjCKeywords findObjCKeywords(unit); // ### remove me
objcKeywords = findObjCKeywords();
}
}