]> granicus.if.org Git - clang/commitdiff
Remove unused ASTConsumer::HandleTopLevelDeclaration
authorDaniel Dunbar <daniel@zuster.org>
Fri, 25 Jul 2008 22:39:30 +0000 (22:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 25 Jul 2008 22:39:30 +0000 (22:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54071 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTConsumer.h
lib/AST/ASTConsumer.cpp

index b9513be240bc6c453a33701c09326a4cc46a2ab9..1ca17744de7d87f66921ef72d238a895ba39d984 100644 (file)
@@ -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
index 3f92990f36093e694e764da3a60361c0aea08415..bf6a0cb761373a0350c6c4df514b4701dcec45fb 100644 (file)
@@ -19,16 +19,6 @@ using namespace clang;
 
 ASTConsumer::~ASTConsumer() {}
 
-void ASTConsumer::HandleTopLevelDeclaration(Decl* d) {
-  if (ScopedDecl* sd = dyn_cast<ScopedDecl>(d))
-    while (sd) {
-      HandleTopLevelDecl(sd);
-      sd = sd->getNextDeclarator();
-    }
-  else
-    HandleTopLevelDecl(d);
-}
-
 void ASTConsumer::InitializeTU(TranslationUnit& TU) {
   Initialize(TU.getContext());
 }