[lldb] Remove unused CompilerDeclContext::IsStructUnionOrClass

This commit is contained in:
Raphael Isemann 2019-12-22 14:00:26 +01:00
parent 7394c15178
commit 218601ada1
5 changed files with 0 additions and 20 deletions

View File

@ -444,8 +444,6 @@ public:
DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name,
const bool ignore_using_decls) override;
bool DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) override;
ConstString DeclContextGetName(void *opaque_decl_ctx) override;
ConstString DeclContextGetScopeQualifiedName(void *opaque_decl_ctx) override;

View File

@ -98,8 +98,6 @@ public:
ConstString GetScopeQualifiedName() const;
bool IsStructUnionOrClass() const;
private:
TypeSystem *m_type_system = nullptr;
void *m_opaque_decl_ctx = nullptr;

View File

@ -98,8 +98,6 @@ public:
DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name,
const bool ignore_imported_decls);
virtual bool DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) = 0;
virtual ConstString DeclContextGetName(void *opaque_decl_ctx) = 0;
virtual ConstString

View File

@ -9268,13 +9268,6 @@ uint32_t ClangASTContext::CountDeclLevels(clang::DeclContext *frame_decl_ctx,
return LLDB_INVALID_DECL_LEVEL;
}
bool ClangASTContext::DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) {
if (opaque_decl_ctx)
return ((clang::DeclContext *)opaque_decl_ctx)->isRecord();
else
return false;
}
ConstString ClangASTContext::DeclContextGetName(void *opaque_decl_ctx) {
if (opaque_decl_ctx) {
clang::NamedDecl *named_decl =

View File

@ -37,13 +37,6 @@ ConstString CompilerDeclContext::GetScopeQualifiedName() const {
return ConstString();
}
bool CompilerDeclContext::IsStructUnionOrClass() const {
if (IsValid())
return m_type_system->DeclContextIsStructUnionOrClass(m_opaque_decl_ctx);
else
return false;
}
bool CompilerDeclContext::IsClassMethod(lldb::LanguageType *language_ptr,
bool *is_instance_method_ptr,
ConstString *language_object_name_ptr) {