From: Richard Smith Date: Mon, 19 Sep 2011 11:19:27 +0000 (+0000) Subject: Remove function which is unused as of r139996. Thanks to David Blaikie for bringing... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aca87d4b48058d56a48d62435ad6a871cc62ad1;p=clang 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 --- 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,