]> granicus.if.org Git - clang/commitdiff
Delete a dead function at sabre's request.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 13 May 2010 07:47:58 +0000 (07:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 13 May 2010 07:47:58 +0000 (07:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103705 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/Sema.cpp

index 0c713e7c9a61b8b5e95c1b77034661a9508bc6fa..91effa44b260f33d27727caaf48ef7c9db1c6590 100644 (file)
@@ -38,17 +38,6 @@ void FunctionScopeInfo::Clear(unsigned NumErrors) {
 
 BlockScopeInfo::~BlockScopeInfo() { }
 
-static inline RecordDecl *CreateStructDecl(ASTContext &C, const char *Name) {
-  if (C.getLangOptions().CPlusPlus)
-    return CXXRecordDecl::Create(C, TTK_Struct,
-                                 C.getTranslationUnitDecl(),
-                                 SourceLocation(), &C.Idents.get(Name));
-
-  return RecordDecl::Create(C, TTK_Struct,
-                            C.getTranslationUnitDecl(),
-                            SourceLocation(), &C.Idents.get(Name));
-}
-
 void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) {
   TUScope = S;
   PushDeclContext(S, Context.getTranslationUnitDecl());