]> granicus.if.org Git - clang/commitdiff
Remove function which is unused as of r139996. Thanks to David Blaikie for bringing...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 19 Sep 2011 11:19:27 +0000 (11:19 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 19 Sep 2011 11:19:27 +0000 (11:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140013 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index e75b79c609564147c7e6baf4acf467c773df9c5f..b3ec3829b206df57f197a4fc00235738dec5a4c7 100644 (file)
@@ -2333,19 +2333,6 @@ Sema::SetDelegatingInitializer(CXXConstructorDecl *Constructor,
   return false;
 }
 
-/// \brief Determine whether the given indirect field declaration is somewhere
-/// within an anonymous union.
-static bool isWithinAnonymousUnion(IndirectFieldDecl *F) {
-  for (IndirectFieldDecl::chain_iterator C = F->chain_begin(), 
-                                      CEnd = F->chain_end();
-       C != CEnd; ++C)
-    if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>((*C)->getDeclContext()))
-      if (Record->isUnion())
-        return true;
-        
-  return false;
-}
-
 bool Sema::SetCtorInitializers(CXXConstructorDecl *Constructor,
                                CXXCtorInitializer **Initializers,
                                unsigned NumInitializers,