From fb754b6db2c74b71e20042f84a95cdb93fc33870 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 25 Jul 2008 22:39:30 +0000 Subject: [PATCH] Remove unused ASTConsumer::HandleTopLevelDeclaration git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54071 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/ASTConsumer.h | 8 -------- lib/AST/ASTConsumer.cpp | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/include/clang/AST/ASTConsumer.h b/include/clang/AST/ASTConsumer.h index b9513be240..1ca17744de 100644 --- a/include/clang/AST/ASTConsumer.h +++ b/include/clang/AST/ASTConsumer.h @@ -42,14 +42,6 @@ public: /// translation unit have been parsed. virtual void HandleTranslationUnit(TranslationUnit& TU) {} - /// HandleTopLevelDeclaration - Handle the specified top-level declaration. - /// This is called only for Decl* that are the head of a chain of - /// Decl's (in the case that the Decl* is a ScopedDecl*). Subclasses - /// can override its behavior; by default it calls HandleTopLevelDecl - /// for every Decl* in a decl chain. - virtual void HandleTopLevelDeclaration(Decl *D); - - /// HandleTagDeclDefinition - This callback is invoked each time a TagDecl /// (e.g. struct, union, enum, class) is completed. This allows the client to /// hack on the type, which can occur at any point in the file (because these diff --git a/lib/AST/ASTConsumer.cpp b/lib/AST/ASTConsumer.cpp index 3f92990f36..bf6a0cb761 100644 --- a/lib/AST/ASTConsumer.cpp +++ b/lib/AST/ASTConsumer.cpp @@ -19,16 +19,6 @@ using namespace clang; ASTConsumer::~ASTConsumer() {} -void ASTConsumer::HandleTopLevelDeclaration(Decl* d) { - if (ScopedDecl* sd = dyn_cast(d)) - while (sd) { - HandleTopLevelDecl(sd); - sd = sd->getNextDeclarator(); - } - else - HandleTopLevelDecl(d); -} - void ASTConsumer::InitializeTU(TranslationUnit& TU) { Initialize(TU.getContext()); } -- 2.50.1