summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ParentMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/ParentMap.cpp')
-rw-r--r--clang/lib/AST/ParentMap.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/AST/ParentMap.cpp b/clang/lib/AST/ParentMap.cpp
index 82341c78f82..54472ecb963 100644
--- a/clang/lib/AST/ParentMap.cpp
+++ b/clang/lib/AST/ParentMap.cpp
@@ -45,11 +45,3 @@ Stmt* ParentMap::getParent(Stmt* S) const {
MapTy::iterator I = M->find(S);
return I == M->end() ? 0 : I->second;
}
-
-bool ParentMap::isSubExpr(Stmt* S) const {
- if (!isa<Expr>(S))
- return false;
-
- Stmt* P = getParent(S);
- return P ? !isa<CompoundStmt>(P) : false;
-}
OpenPOWER on IntegriCloud