]> granicus.if.org Git - clang/commitdiff
[analyzer] Clean up unused bits of CFRefCount.
authorJordy Rose <jediknil@belkadan.com>
Tue, 23 Aug 2011 21:51:36 +0000 (21:51 +0000)
committerJordy Rose <jediknil@belkadan.com>
Tue, 23 Aug 2011 21:51:36 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138390 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/CFRefCount.cpp

index 93f7aae94d9eab661ccb9ac9279a8e8db342163f..73b1ac270a8484013baac67103c6ebc6ab31d5b0 100644 (file)
@@ -1643,13 +1643,6 @@ public:
   BugType *leakWithinFunction, *leakAtReturn;
   BugType *overAutorelease;
   BugType *returnNotOwnedForOwned;
-  BugReporter *BR;
-
-  const ProgramState *Update(const ProgramState * state,
-                             SymbolRef sym,
-                             RefVal V,
-                             ArgEffect E,
-                             RefVal::Kind& hasErr);
 
 public:
   CFRefCount(ASTContext &Ctx, bool gcenabled, const LangOptions& lopts)
@@ -1657,7 +1650,7 @@ public:
       LOpts(lopts), useAfterRelease(0), releaseNotOwned(0),
       deallocGC(0), deallocNotOwned(0),
       leakWithinFunction(0), leakAtReturn(0), overAutorelease(0),
-      returnNotOwnedForOwned(0), BR(0) {}
+      returnNotOwnedForOwned(0) {}
 
   void RegisterChecks(ExprEngine &Eng);
 
@@ -3755,9 +3748,6 @@ void CFRefCount::RegisterChecks(ExprEngine& Eng) {
   leakWithinFunction->setSuppressOnSink(true);
   BR.Register(leakWithinFunction);
 
-  // Save the reference to the BugReporter.
-  this->BR = &BR;
-
   // Register the RetainReleaseChecker with the ExprEngine object.
   // Functionality in CFRefCount will be migrated to RetainReleaseChecker
   // over time.