From: Steve Naroff Date: Sun, 8 Mar 2009 19:04:05 +0000 (+0000) Subject: Remove dead clause (we decided not to support protocol qualified 'Class'). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64949d3a2ef5e4e38d4ec4dc9e980085c09ae01a;p=clang 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 --- 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". - } else if (ObjCQualifiedClassType *QIT = - dyn_cast(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).