[StaticAnalyzer] Remove unused function hasGlobalsOrParametersStorage
authorKazu Hirata <kazu@google.com>
Tue, 13 Jun 2023 07:24:47 +0000 (00:24 -0700)
committerKazu Hirata <kazu@google.com>
Tue, 13 Jun 2023 07:24:47 +0000 (00:24 -0700)
The last use was removed by:

  commit e2e37b9afc0a0a66a1594377a88221e115d95348
  Author: Ted Kremenek <kremenek@apple.com>
  Date:   Thu Jul 28 23:08:02 2011 +0000

clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
clang/lib/StaticAnalyzer/Core/MemRegion.cpp

index e982384..9c4730a 100644 (file)
@@ -136,8 +136,6 @@ public:
   /// It might return null.
   const SymbolicRegion *getSymbolicBase() const;
 
-  bool hasGlobalsOrParametersStorage() const;
-
   bool hasStackStorage() const;
 
   bool hasStackNonParametersStorage() const;
index 7cda64d..5f05412 100644 (file)
@@ -1285,10 +1285,6 @@ bool MemRegion::hasStackParametersStorage() const {
   return isa<StackArgumentsSpaceRegion>(getMemorySpace());
 }
 
-bool MemRegion::hasGlobalsOrParametersStorage() const {
-  return isa<StackArgumentsSpaceRegion, GlobalsSpaceRegion>(getMemorySpace());
-}
-
 // Strips away all elements and fields.
 // Returns the base region of them.
 const MemRegion *MemRegion::getBaseRegion() const {