aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema')
-rw-r--r--lib/Sema/Sema.h3
-rw-r--r--lib/Sema/SemaLookup.cpp20
2 files changed, 0 insertions, 23 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index d319969cce..33d7468787 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -1272,9 +1272,6 @@ public:
DeclarationName Name,
LookupNameKind NameKind,
bool RedeclarationOnly = false);
- Decl *LookupQualifiedNameWithType(DeclContext *LookupCtx,
- DeclarationName Name,
- QualType T);
bool LookupParsedName(LookupResult &R, Scope *S, const CXXScopeSpec *SS,
DeclarationName Name,
LookupNameKind NameKind,
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index 1c6e936827..aad12ccaa8 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/lib/Sema/SemaLookup.cpp
@@ -1352,26 +1352,6 @@ ObjCCategoryImplDecl *Sema::LookupObjCCategoryImpl(IdentifierInfo *II) {
return cast_or_null<ObjCCategoryImplDecl>(D);
}
-// Attempts to find a declaration in the given declaration context
-// with exactly the given type. Returns null if no such declaration
-// was found.
-Decl *Sema::LookupQualifiedNameWithType(DeclContext *DC,
- DeclarationName Name,
- QualType T) {
- LookupResult result;
- LookupQualifiedName(result, DC, Name, LookupOrdinaryName, true);
-
- CanQualType CQT = Context.getCanonicalType(T);
-
- for (LookupResult::iterator ir = result.begin(), ie = result.end();
- ir != ie; ++ir)
- if (FunctionDecl *CurFD = dyn_cast<FunctionDecl>(*ir))
- if (Context.getCanonicalType(CurFD->getType()) == CQT)
- return CurFD;
-
- return NULL;
-}
-
void Sema::LookupOverloadedOperatorName(OverloadedOperatorKind Op, Scope *S,
QualType T1, QualType T2,
FunctionSet &Functions) {