]> granicus.if.org Git - clang/commitdiff
Remove DeclStmt::getDecl(). Now clients of DeclStmt must explicitly reason about...
authorTed Kremenek <kremenek@apple.com>
Mon, 6 Oct 2008 22:51:42 +0000 (22:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 6 Oct 2008 22:51:42 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57217 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h

index 210a142123d45f3e866c17ea4a642b954fd028b5..1111bd31e1aacbb0ddb8748ae8e495876fc54578 100644 (file)
@@ -152,10 +152,7 @@ public:
   // hasSolitaryDecl - This method returns true if this DeclStmt refers
   // to a single Decl.
   bool hasSolitaryDecl() const;
-  
-  const ScopedDecl *getDecl() const { return TheDecl; }
-  ScopedDecl *getDecl() { return TheDecl; }
-  
   const ScopedDecl* getSolitaryDecl() const {
     assert (hasSolitaryDecl() &&
             "Caller assumes this DeclStmt points to one Decl*");