summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index a7d8216b005..66f20364a64 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -438,16 +438,6 @@ Stmt *FunctionDecl::getBody(const FunctionDecl *&Definition) const {
return 0;
}
-Stmt *FunctionDecl::getBodyIfAvailable() const {
- for (redecl_iterator I = redecls_begin(), E = redecls_end(); I != E; ++I) {
- if (I->Body && !I->Body.isOffset()) {
- return I->Body.get(0);
- }
- }
-
- return 0;
-}
-
void FunctionDecl::setBody(Stmt *B) {
Body = B;
if (B)
OpenPOWER on IntegriCloud