]> granicus.if.org Git - clang/commitdiff
Removing code that is unused after r231424; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 6 Mar 2015 14:24:53 +0000 (14:24 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 6 Mar 2015 14:24:53 +0000 (14:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTWriter.cpp

index 29ed5c366cdfc1007b9019d84a340cb02a975059..19c7a966253c9f51f2773f75d1abeb0670b01f26 100644 (file)
@@ -3901,14 +3901,6 @@ void ASTWriter::WriteRedeclarations() {
       }
     }
 
-    if (!First->isFromASTFile() && Chain) {
-      Decl *FirstFromAST = MostRecent;
-      for (Decl *Prev = MostRecent; Prev; Prev = Prev->getPreviousDecl()) {
-        if (Prev->isFromASTFile())
-          FirstFromAST = Prev;
-      }
-    }
-
     LocalRedeclChains[Offset] = Size;
     
     // Reverse the set of local redeclarations, so that we store them in