diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp
index 7fea6918fb79de439a2c9026a4248b1a02aa78b5..09465a2fee07ae4752b802e2330e824a999326fe 100644
--- a/src/libs/cplusplus/LookupContext.cpp
+++ b/src/libs/cplusplus/LookupContext.cpp
@@ -218,18 +218,7 @@ QList<Symbol *> LookupContext::lookup(const Name *name, Scope *scope) const
                 break; // it's a formal argument.
 
             if (fun->name() && fun->name()->isQualifiedNameId()) {
-                const QualifiedNameId *q = fun->name()->asQualifiedNameId();
-
-                QList<const Name *> path = fullyQualifiedName(scope->owner());
-
-                for (unsigned index = 0; index < q->nameCount() - 1; ++index) { // ### TODO remove me.
-                    const Name *name = q->nameAt(index);
-
-                    if (name->isNameId() || name->isTemplateNameId())
-                        path.append(name);
-                }
-
-                if (ClassOrNamespace *binding = bindings()->lookupType(path))
+                if (ClassOrNamespace *binding = bindings()->lookupType(fun))
                     return binding->lookup(name);
             }
 
@@ -647,12 +636,6 @@ ClassOrNamespace *CreateBindings::lookupType(Symbol *symbol)
     return b;
 }
 
-ClassOrNamespace *CreateBindings::lookupType(const QList<const Name *> &path)
-{
-    ClassOrNamespace *e = _globalNamespace->findType(path);
-    return e;
-}
-
 void CreateBindings::process(Symbol *s, ClassOrNamespace *classOrNamespace)
 {
     ClassOrNamespace *previous = switchCurrentClassOrNamespace(classOrNamespace);
diff --git a/src/libs/cplusplus/LookupContext.h b/src/libs/cplusplus/LookupContext.h
index b96ab2f84a62c30798a8420d275e992c6fdafc21..7b0f69b4444ed0be96c2eb9f0629b5d65e3a33ce 100644
--- a/src/libs/cplusplus/LookupContext.h
+++ b/src/libs/cplusplus/LookupContext.h
@@ -126,10 +126,6 @@ public:
     /// Finds the binding associated to the given symbol.
     ClassOrNamespace *lookupType(Symbol *symbol);
 
-    /// Find the binding with the given path.
-    /// \internal
-    ClassOrNamespace *lookupType(const QList<const Name *> &path);
-
     /// Returns the Control that must be used to create temporary symbols.
     /// \internal
     Control *control() const;