diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-08 19:04:05 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-08 19:04:05 +0000 |
commit | 64949d3a2ef5e4e38d4ec4dc9e980085c09ae01a (patch) | |
tree | 10834740bbb3b1ccb35c852e600357df71a8ecc2 /lib/Sema/SemaExprObjC.cpp | |
parent | 5609ec04ed9a4fd58c3203d210cf32e9283feb5e (diff) |
Remove dead clause (we decided not to support protocol qualified 'Class').
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprObjC.cpp')
-rw-r--r-- | lib/Sema/SemaExprObjC.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index ef397ca771..6b40c89a8c 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -471,15 +471,6 @@ Sema::ExprResult Sema::ActOnInstanceMessage(ExprTy *receiver, Selector Sel, if (PDecl && (Method = PDecl->lookupInstanceMethod(Sel))) break; } - // Check for GCC extension "Class<foo>". - } else if (ObjCQualifiedClassType *QIT = - dyn_cast<ObjCQualifiedClassType>(ReceiverCType)) { - // Search protocols for class methods. - for (unsigned i = 0; i < QIT->getNumProtocols(); i++) { - ObjCProtocolDecl *PDecl = QIT->getProtocols(i); - if (PDecl && (Method = PDecl->lookupClassMethod(Sel))) - break; - } } else if (const ObjCInterfaceType *OCIType = ReceiverCType->getAsPointerToObjCInterfaceType()) { // We allow sending a message to a pointer to an interface (an object). |