Skip to content

Commit 218601a

Browse files
committed
[lldb] Remove unused CompilerDeclContext::IsStructUnionOrClass
1 parent 7394c15 commit 218601a

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

lldb/include/lldb/Symbol/ClangASTContext.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,6 @@ class ClangASTContext : public TypeSystem {
444444
DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name,
445445
const bool ignore_using_decls) override;
446446

447-
bool DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) override;
448-
449447
ConstString DeclContextGetName(void *opaque_decl_ctx) override;
450448

451449
ConstString DeclContextGetScopeQualifiedName(void *opaque_decl_ctx) override;

lldb/include/lldb/Symbol/CompilerDeclContext.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ class CompilerDeclContext {
9898

9999
ConstString GetScopeQualifiedName() const;
100100

101-
bool IsStructUnionOrClass() const;
102-
103101
private:
104102
TypeSystem *m_type_system = nullptr;
105103
void *m_opaque_decl_ctx = nullptr;

lldb/include/lldb/Symbol/TypeSystem.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ class TypeSystem : public PluginInterface {
9898
DeclContextFindDeclByName(void *opaque_decl_ctx, ConstString name,
9999
const bool ignore_imported_decls);
100100

101-
virtual bool DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) = 0;
102-
103101
virtual ConstString DeclContextGetName(void *opaque_decl_ctx) = 0;
104102

105103
virtual ConstString

lldb/source/Symbol/ClangASTContext.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9268,13 +9268,6 @@ uint32_t ClangASTContext::CountDeclLevels(clang::DeclContext *frame_decl_ctx,
92689268
return LLDB_INVALID_DECL_LEVEL;
92699269
}
92709270

9271-
bool ClangASTContext::DeclContextIsStructUnionOrClass(void *opaque_decl_ctx) {
9272-
if (opaque_decl_ctx)
9273-
return ((clang::DeclContext *)opaque_decl_ctx)->isRecord();
9274-
else
9275-
return false;
9276-
}
9277-
92789271
ConstString ClangASTContext::DeclContextGetName(void *opaque_decl_ctx) {
92799272
if (opaque_decl_ctx) {
92809273
clang::NamedDecl *named_decl =

lldb/source/Symbol/CompilerDeclContext.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ ConstString CompilerDeclContext::GetScopeQualifiedName() const {
3737
return ConstString();
3838
}
3939

40-
bool CompilerDeclContext::IsStructUnionOrClass() const {
41-
if (IsValid())
42-
return m_type_system->DeclContextIsStructUnionOrClass(m_opaque_decl_ctx);
43-
else
44-
return false;
45-
}
46-
4740
bool CompilerDeclContext::IsClassMethod(lldb::LanguageType *language_ptr,
4841
bool *is_instance_method_ptr,
4942
ConstString *language_object_name_ptr) {

0 commit comments

Comments
 (0)