@@ -1416,30 +1416,6 @@ ClangASTContext::GetTranslationUnitDecl(clang::ASTContext *ast) {
1416
1416
return ast->getTranslationUnitDecl ();
1417
1417
}
1418
1418
1419
- CompilerType ClangASTContext::CopyType (const CompilerType &src) {
1420
- clang::ASTContext *dst_clang_ast = getASTContext ();
1421
- if (dst_clang_ast) {
1422
- FileSystemOptions file_system_options;
1423
- ClangASTContext *src_ast =
1424
- llvm::dyn_cast_or_null<ClangASTContext>(src.GetTypeSystem ());
1425
- if (src_ast) {
1426
- clang::ASTContext *src_clang_ast = src_ast->getASTContext ();
1427
- if (src_clang_ast) {
1428
- if (src_clang_ast == dst_clang_ast)
1429
- return src; // We already are in the right AST, no need to copy
1430
- else {
1431
- FileManager file_manager (file_system_options);
1432
- ASTImporter importer (*dst_clang_ast, file_manager, *src_clang_ast,
1433
- file_manager, false );
1434
- QualType dst_qual_type (importer.Import (ClangUtil::GetQualType (src)));
1435
- return CompilerType (this , dst_qual_type.getAsOpaquePtr ());
1436
- }
1437
- }
1438
- }
1439
- }
1440
- return CompilerType ();
1441
- }
1442
-
1443
1419
clang::Decl *ClangASTContext::CopyDecl (ASTContext *dst_ast, ASTContext *src_ast,
1444
1420
clang::Decl *source_decl) {
1445
1421
FileSystemOptions file_system_options;
@@ -5069,15 +5045,6 @@ ClangASTContext::GetUnboundType(lldb::opaque_compiler_type_t type) {
5069
5045
return CompilerType (getASTContext (), GetQualType (type));
5070
5046
}
5071
5047
5072
- CompilerType ClangASTContext::RemoveFastQualifiers (const CompilerType &type) {
5073
- if (ClangUtil::IsClangType (type)) {
5074
- clang::QualType qual_type (ClangUtil::GetQualType (type));
5075
- qual_type.getQualifiers ().removeFastQualifiers ();
5076
- return CompilerType (type.GetTypeSystem (), qual_type.getAsOpaquePtr ());
5077
- }
5078
- return type;
5079
- }
5080
-
5081
5048
// ----------------------------------------------------------------------
5082
5049
// Create related types using the current type's AST
5083
5050
// ----------------------------------------------------------------------
0 commit comments