]> granicus.if.org Git - clang/commitdiff
Remove an unused function, suppress -Wunused-function warning.
authorHaojian Wu <hokein@google.com>
Thu, 22 Aug 2019 08:49:41 +0000 (08:49 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 22 Aug 2019 08:49:41 +0000 (08:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369629 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CastValueChecker.cpp

index 5c4daa3e428be4a250e6214e7545ccdf7bbc3bf7..8724e4acbc4ce971870330885d072684e24d7f63 100644 (file)
@@ -51,7 +51,6 @@ public:
   // 1) isa:             The parameter is non-null, returns boolean.
   // 2) isa_and_nonnull: The parameter is null or non-null, returns boolean.
   bool evalCall(const CallEvent &Call, CheckerContext &C) const;
-  void checkDeadSymbols(SymbolReaper &SR, CheckerContext &C) const;
 
 private:
   // These are known in the LLVM project. The pairs are in the following form:
@@ -415,11 +414,6 @@ bool CastValueChecker::evalCall(const CallEvent &Call,
   return true;
 }
 
-void CastValueChecker::checkDeadSymbols(SymbolReaper &SR,
-                                        CheckerContext &C) const {
-  C.addTransition(removeDeadCasts(C.getState(), SR));
-}
-
 void ento::registerCastValueChecker(CheckerManager &Mgr) {
   Mgr.registerChecker<CastValueChecker>();
 }