]> granicus.if.org Git - clang/commitdiff
Remove an unused function (found by Clang's -Wunused-function)
authorChandler Carruth <chandlerc@gmail.com>
Fri, 29 Jul 2011 00:15:44 +0000 (00:15 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 29 Jul 2011 00:15:44 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136434 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/Environment.cpp

index 92c4a4c581cbfc8900e2eedf6fb1a98368ee670c..b34a481e32798a2d31408cc6e02dc15557cdb429 100644 (file)
@@ -126,18 +126,6 @@ public:
 };
 } // end anonymous namespace
 
-static bool isBlockExprInCallers(const Stmt *E, const LocationContext *LC) {
-  const LocationContext *ParentLC = LC->getParent();
-  while (ParentLC) {
-    CFG &C = *ParentLC->getCFG();
-    if (C.isBlkExpr(E))
-      return true;
-    ParentLC = ParentLC->getParent();
-  }
-
-  return false;
-}
-
 // In addition to mapping from Stmt * - > SVals in the Environment, we also
 // maintain a mapping from Stmt * -> SVals (locations) that were used during
 // a load and store.