From: Ted Kremenek Date: Fri, 7 Sep 2012 22:24:18 +0000 (+0000) Subject: Remove ConstraintManager:isEqual(). It is no longer used. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ace64b5f6a338111084bf4a7c9b7488a9965ef4e;p=clang Remove ConstraintManager:isEqual(). It is no longer used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163425 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h index 7fd6167419..e41a908583 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h @@ -46,10 +46,6 @@ public: virtual const llvm::APSInt* getSymVal(ProgramStateRef state, SymbolRef sym) const = 0; - virtual bool isEqual(ProgramStateRef state, - SymbolRef sym, - const llvm::APSInt& V) const = 0; - virtual ProgramStateRef removeDeadBindings(ProgramStateRef state, SymbolReaper& SymReaper) = 0; diff --git a/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp b/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp index 2b883cf9b9..3c31ecbedc 100644 --- a/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp +++ b/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp @@ -325,12 +325,6 @@ public: const llvm::APSInt* getSymVal(ProgramStateRef St, SymbolRef sym) const; - // FIXME: Refactor into SimpleConstraintManager? - bool isEqual(ProgramStateRef St, SymbolRef sym, const llvm::APSInt& V) const { - const llvm::APSInt *i = getSymVal(St, sym); - return i ? *i == V : false; - } - ProgramStateRef removeDeadBindings(ProgramStateRef St, SymbolReaper& SymReaper); void print(ProgramStateRef St, raw_ostream &Out,