Commit 10a2274b authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed obsolete code.

parent 3ae4f07b
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment