Skip to content

Commit

Permalink
[lldb] Remove unused CompilerDeclContext::IsStructUnionOrClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemperor committed Dec 22, 2019
1 parent 7394c15 commit 218601a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions lldb/include/lldb/Symbol/ClangASTContext.h
Expand Up @@ -444,8 +444,6 @@ class ClangASTContext : public TypeSystem {
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;
Expand Down
2 changes: 0 additions & 2 deletions lldb/include/lldb/Symbol/CompilerDeclContext.h
Expand Up @@ -98,8 +98,6 @@ class CompilerDeclContext {

ConstString GetScopeQualifiedName() const;

bool IsStructUnionOrClass() const;

private:
TypeSystem *m_type_system = nullptr;
void *m_opaque_decl_ctx = nullptr;
Expand Down
2 changes: 0 additions & 2 deletions lldb/include/lldb/Symbol/TypeSystem.h
Expand Up @@ -98,8 +98,6 @@ class TypeSystem : public PluginInterface {
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
Expand Down
7 changes: 0 additions & 7 deletions lldb/source/Symbol/ClangASTContext.cpp
Expand Up @@ -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 =
Expand Down
7 changes: 0 additions & 7 deletions lldb/source/Symbol/CompilerDeclContext.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 218601a

Please sign in to comment.