[cfe-commits] r136434 - /cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp

Chandler Carruth chandlerc at gmail.com
Thu Jul 28 17:15:44 PDT 2011


Author: chandlerc
Date: Thu Jul 28 19:15:44 2011
New Revision: 136434

URL: http://llvm.org/viewvc/llvm-project?rev=136434&view=rev
Log:
Remove an unused function (found by Clang's -Wunused-function)

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp?rev=136434&r1=136433&r2=136434&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp Thu Jul 28 19:15:44 2011
@@ -126,18 +126,6 @@
 };
 } // 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.





More information about the cfe-commits mailing list