From 9aca87d4b48058d56a48d62435ad6a871cc62ad1 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 19 Sep 2011 11:19:27 +0000 Subject: [PATCH] Remove function which is unused as of r139996. Thanks to David Blaikie for bringing this to my attention. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140013 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDeclCXX.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index e75b79c609..b3ec3829b2 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -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((*C)->getDeclContext())) - if (Record->isUnion()) - return true; - - return false; -} - bool Sema::SetCtorInitializers(CXXConstructorDecl *Constructor, CXXCtorInitializer **Initializers, unsigned NumInitializers, -- 2.50.1