compilerplugins: remove unused getDeclContext()
Change-Id: I523cc2195be5f200b3e416d1ec3b282e3245ebbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90214 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
parent
358991e3b0
commit
cfc2a227b4
1 changed files with 0 additions and 18 deletions
|
@ -199,24 +199,6 @@ Stmt* Plugin::getParentStmt( Stmt* stmt )
|
|||
return const_cast<Stmt*>(parentsRange.begin()->get<Stmt>());
|
||||
}
|
||||
|
||||
static const Decl* getDeclContext(ASTContext& context, const Stmt* stmt)
|
||||
{
|
||||
auto it = context.getParents(*stmt).begin();
|
||||
|
||||
if (it == context.getParents(*stmt).end())
|
||||
return nullptr;
|
||||
|
||||
const Decl *aDecl = it->get<Decl>();
|
||||
if (aDecl)
|
||||
return aDecl;
|
||||
|
||||
const Stmt *aStmt = it->get<Stmt>();
|
||||
if (aStmt)
|
||||
return getDeclContext(context, aStmt);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static const Decl* getFunctionDeclContext(ASTContext& context, const Stmt* stmt)
|
||||
{
|
||||
auto it = context.getParents(*stmt).begin();
|
||||
|
|
Loading…
Reference in a new issue