]> granicus.if.org Git - clang/commitdiff
remove dead code.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 30 Jun 2009 07:50:26 +0000 (07:50 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 30 Jun 2009 07:50:26 +0000 (07:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74517 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CheckObjCUnusedIVars.cpp
lib/Frontend/ASTConsumers.cpp

index 6764985d43457eb70143edd7f0f3c2be3a6f1f92..0063c40482a0e38ec290420440ff2dc73f8f19da 100644 (file)
@@ -59,9 +59,6 @@ void clang::CheckObjCUnusedIvar(ObjCImplementationDecl* D, BugReporter& BR) {
   ObjCInterfaceDecl* ID = D->getClassInterface();
   IvarUsageMap M;
 
-
-  ASTContext &Ctx = BR.getContext();
-
   // Iterate over the ivars.
   for (ObjCInterfaceDecl::ivar_iterator I=ID->ivar_begin(), E=ID->ivar_end();
        I!=E; ++I) {
index 51e376ffe061d857874e3d3be35c0ea447285141..8f0ad13319eb2dc4df7623730ff6388881896016 100644 (file)
@@ -340,8 +340,6 @@ void DeclContextPrinter::PrintDeclContext(const DeclContext* DC,
   Out << "\n";
 
   // Print decls in the DeclContext.
-  // FIXME: Should not use a NULL DeclContext!
-  ASTContext *Context = 0;
   for (DeclContext::decl_iterator I = DC->decls_begin(), E = DC->decls_end();
        I != E; ++I) {
     for (unsigned i = 0; i < Indentation; ++i)