From fcedc6a61bd152324bc6805bb8f0e0163f2af7d1 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 22 Aug 2019 08:49:41 +0000 Subject: [PATCH] Remove an unused function, suppress -Wunused-function warning. llvm-svn: 369629 --- clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp index 5c4daa3..8724e4a 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp @@ -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(); } -- 2.7.4