From 2d6b767c1d15ec736b409370da33009de57de7f2 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 25 Feb 2021 11:44:17 +0100 Subject: [PATCH] [lldb][NFC] Remove some obsolete comments in ClangASTImporter.cpp The first two comments are incomplete and reference obsolete code. The last one is just commented out code (that also doesn't look correct). --- .../Plugins/ExpressionParser/Clang/ClangASTImporter.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp index c1c115c..ad72f01 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp @@ -359,9 +359,6 @@ bool ClangASTImporter::CanImport(const CompilerType &type) { if (!ClangUtil::IsClangType(type)) return false; - // TODO: remove external completion BOOL - // CompleteAndFetchChildren should get the Decl out and check for the - clang::QualType qual_type( ClangUtil::GetCanonicalQualType(ClangUtil::RemoveFastQualifiers(type))); @@ -435,8 +432,6 @@ bool ClangASTImporter::CanImport(const CompilerType &type) { bool ClangASTImporter::Import(const CompilerType &type) { if (!ClangUtil::IsClangType(type)) return false; - // TODO: remove external completion BOOL - // CompleteAndFetchChildren should get the Decl out and check for the clang::QualType qual_type( ClangUtil::GetCanonicalQualType(ClangUtil::RemoveFastQualifiers(type))); @@ -908,16 +903,6 @@ void ClangASTImporter::ASTImporterDelegate::ImportDefinitionTo( MapImported(from, to); ASTImporter::Imported(from, to); - /* - if (to_objc_interface) - to_objc_interface->startDefinition(); - - CXXRecordDecl *to_cxx_record = dyn_cast(to); - - if (to_cxx_record) - to_cxx_record->startDefinition(); - */ - Log *log = lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS); if (llvm::Error err = ImportDefinition(from)) { -- 2.7.4