]> granicus.if.org Git - clang/commitdiff
Remove unused method CFGBlock::hasBinaryBranchTerminator().
authorTed Kremenek <kremenek@apple.com>
Wed, 27 Apr 2011 22:16:58 +0000 (22:16 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 27 Apr 2011 22:16:58 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130336 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/CFG.h
lib/Analysis/CFG.cpp

index 864c0caf0eafa78cfd19ebe0c61638eaa38f73b9..53ed705b950650a14ac076a35436d91be6e084f1 100644 (file)
@@ -468,8 +468,6 @@ public:
 
   const Stmt *getLoopTarget() const { return LoopTarget; }
 
-  bool hasBinaryBranchTerminator() const;
-
   Stmt* getLabel() { return Label; }
   const Stmt* getLabel() const { return Label; }
 
index eaab487d9592bf8ecbbcbf977f94f422471a6179..de16334ce137f6d4f5badaaaf5bfbd3334b1db8c 100644 (file)
@@ -3650,32 +3650,6 @@ Stmt* CFGBlock::getTerminatorCondition() {
   return E ? E->IgnoreParens() : NULL;
 }
 
-bool CFGBlock::hasBinaryBranchTerminator() const {
-  const Stmt *Terminator = this->Terminator;
-  if (!Terminator)
-    return false;
-
-  Expr* E = NULL;
-
-  switch (Terminator->getStmtClass()) {
-    default:
-      return false;
-
-    case Stmt::ForStmtClass:
-    case Stmt::WhileStmtClass:
-    case Stmt::DoStmtClass:
-    case Stmt::IfStmtClass:
-    case Stmt::ChooseExprClass:
-    case Stmt::BinaryConditionalOperatorClass:
-    case Stmt::ConditionalOperatorClass:
-    case Stmt::BinaryOperatorClass:
-      return true;
-  }
-
-  return E ? E->IgnoreParens() : NULL;
-}
-
-
 //===----------------------------------------------------------------------===//
 // CFG Graphviz Visualization
 //===----------------------------------------------------------------------===//