]> granicus.if.org Git - clang/commitdiff
Remove dead clause (we decided not to support protocol qualified 'Class').
authorSteve Naroff <snaroff@apple.com>
Sun, 8 Mar 2009 19:04:05 +0000 (19:04 +0000)
committerSteve Naroff <snaroff@apple.com>
Sun, 8 Mar 2009 19:04:05 +0000 (19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprObjC.cpp

index ef397ca771c1feabd0a9b5a0db4786133e4299f7..6b40c89a8c887e8b4ebad02018456908422c2a4b 100644 (file)
@@ -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).