Remove unused function.
authorGreg Clayton <gclayton@apple.com>
Wed, 9 Sep 2015 22:13:36 +0000 (22:13 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 9 Sep 2015 22:13:36 +0000 (22:13 +0000)
llvm-svn: 247197

lldb/include/lldb/Symbol/ClangASTContext.h
lldb/source/Symbol/ClangASTContext.cpp

index 9a96e0a..273a4f0 100644 (file)
@@ -209,10 +209,6 @@ public:
         return GetTranslationUnitDecl (getASTContext());
     }
     
-    static CompilerType
-    CopyType(clang::ASTContext *dest_context, 
-             CompilerType source_type);
-    
     static clang::Decl *
     CopyDecl (clang::ASTContext *dest_context, 
               clang::ASTContext *source_context,
index cb57082..d1b9303 100644 (file)
@@ -1114,25 +1114,6 @@ ClangASTContext::GetTranslationUnitDecl (clang::ASTContext *ast)
     return ast->getTranslationUnitDecl();
 }
 
-CompilerType
-ClangASTContext::CopyType (ASTContext *dst_ast, 
-                           CompilerType src)
-{
-    FileSystemOptions file_system_options;
-    ClangASTContext *src_ast = llvm::dyn_cast_or_null<ClangASTContext>(src.GetTypeSystem());
-    if (src_ast == nullptr)
-        return CompilerType();
-    FileManager file_manager (file_system_options);
-    ASTImporter importer(*dst_ast, file_manager,
-                         *src_ast->getASTContext(), file_manager,
-                         false);
-    
-    QualType dst (importer.Import(GetQualType(src)));
-    
-    return CompilerType (dst_ast, dst);
-}
-
-
 clang::Decl *
 ClangASTContext::CopyDecl (ASTContext *dst_ast, 
                            ASTContext *src_ast,