]> granicus.if.org Git - clang/commitdiff
Remove dead code.
authorTed Kremenek <kremenek@apple.com>
Sat, 20 Aug 2011 01:15:28 +0000 (01:15 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 20 Aug 2011 01:15:28 +0000 (01:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138183 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/UninitializedValues.cpp
lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp

index 84530227dff87cdbb87dd68aa497b48c38548f18..77da2427c0fcbc2a6ccb15b66f2e820119ca2ff2 100644 (file)
@@ -123,13 +123,7 @@ public:
   bool hasNoDeclarations() const {
     return declToIndex.size() == 0;
   }
-  
-  bool hasEntry(const VarDecl *vd) const {
-    return declToIndex.getValueIndex(vd).hasValue();
-  }
-  
-  bool hasValues(const CFGBlock *block);
-  
+
   void resetScratch();
   ValueVector &getScratch() { return scratch; }
   
@@ -209,11 +203,6 @@ ValueVector &CFGBlockValues::getValueVector(const CFGBlock *block,
   return lazyCreate(vals[idx].first);
 }
 
-bool CFGBlockValues::hasValues(const CFGBlock *block) {
-  unsigned idx = block->getBlockID();
-  return vals[idx].second != 0;  
-}
-
 BVPair &CFGBlockValues::getValueVectors(const clang::CFGBlock *block,
                                         bool shouldLazyCreate) {
   unsigned idx = block->getBlockID();
@@ -366,7 +355,6 @@ public:
       flagBlockUses(flagBlockUses), lastDR(0), lastLoad(0),
       skipProcessUses(false) {}
   
-  const CFG &getCFG() { return cfg; }
   void reportUninit(const DeclRefExpr *ex, const VarDecl *vd,
                     bool isAlwaysUninit);
 
index b69c1a336609aaae9fa8e5fff16abaa7ba94988f..c4c37779263c5298f29400fc7f1e881898ef7277 100644 (file)
@@ -52,7 +52,6 @@ public:
   void VisitChildren(Stmt *S);
 
   // Helpers.
-  IdentifierInfo *getIdentifier(IdentifierInfo *& II, const char *str);
   bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
 
   typedef void (WalkAST::*FnCheck)(const CallExpr *,
@@ -71,17 +70,6 @@ public:
 };
 } // end anonymous namespace
 
-//===----------------------------------------------------------------------===//
-// Helper methods.
-//===----------------------------------------------------------------------===//
-
-IdentifierInfo *WalkAST::getIdentifier(IdentifierInfo *& II, const char *str) {
-  if (!II)
-    II = &BR.getContext().Idents.get(str);
-
-  return II;
-}
-
 //===----------------------------------------------------------------------===//
 // AST walking.
 //===----------------------------------------------------------------------===//