forked from qt-creator/qt-creator
Removed obsolete code.
This commit is contained in:
@@ -92,30 +92,6 @@ LookupContext::LookupContext(Symbol *symbol,
|
||||
_visibleScopes = buildVisibleScopes();
|
||||
}
|
||||
|
||||
LookupContext::LookupContext(Symbol *symbol,
|
||||
const LookupContext &context)
|
||||
: _control(context._control),
|
||||
_symbol(symbol),
|
||||
_expressionDocument(context._expressionDocument),
|
||||
_documents(context._documents)
|
||||
{
|
||||
const QString fn = QString::fromUtf8(symbol->fileName(), symbol->fileNameLength());
|
||||
_thisDocument = _documents.value(fn);
|
||||
_visibleScopes = buildVisibleScopes();
|
||||
}
|
||||
|
||||
LookupContext::LookupContext(Symbol *symbol,
|
||||
Document::Ptr thisDocument,
|
||||
const LookupContext &context)
|
||||
: _control(context._control),
|
||||
_symbol(symbol),
|
||||
_expressionDocument(context._expressionDocument),
|
||||
_thisDocument(thisDocument),
|
||||
_documents(context._documents)
|
||||
{
|
||||
_visibleScopes = buildVisibleScopes();
|
||||
}
|
||||
|
||||
bool LookupContext::isValid() const
|
||||
{ return _control != 0; }
|
||||
|
||||
@@ -419,13 +395,6 @@ void LookupContext::expandClass(Class *klass,
|
||||
const QList<Symbol *> baseClassCandidates = resolveClass(baseClassName,
|
||||
classVisibleScopes);
|
||||
|
||||
#if 0
|
||||
if (baseClassCandidates.isEmpty()) {
|
||||
Overview overview;
|
||||
qDebug() << "unresolved base class:" << overview.prettyName(baseClassName);
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int j = 0; j < baseClassCandidates.size(); ++j) {
|
||||
if (Class *baseClassSymbol = baseClassCandidates.at(j)->asClass())
|
||||
expand(baseClassSymbol->members(), visibleScopes, expandedScopes);
|
||||
|
||||
@@ -45,13 +45,6 @@ public:
|
||||
Document::Ptr thisDocument,
|
||||
const Snapshot &documents);
|
||||
|
||||
LookupContext(Symbol *symbol,
|
||||
const LookupContext &context);
|
||||
|
||||
LookupContext(Symbol *symbol,
|
||||
Document::Ptr thisDocument,
|
||||
const LookupContext &context);
|
||||
|
||||
bool isValid() const;
|
||||
operator bool() const;
|
||||
|
||||
|
||||
@@ -457,7 +457,6 @@ bool ResolveExpression::visit(QualifiedNameAST *ast)
|
||||
foreach (Symbol *symbol, symbols) {
|
||||
if (symbol->isTypedef()) {
|
||||
if (NamedType *namedTy = symbol->type()->asNamedType()) {
|
||||
LookupContext symbolContext(symbol, _context);
|
||||
const Result r(namedTy, symbol);
|
||||
const QList<Symbol *> resolvedClasses =
|
||||
resolveClass(r, _context);
|
||||
|
||||
Reference in New Issue
Block a user