diff options
Diffstat (limited to 'lib/Sema/Scope.cpp')
-rw-r--r-- | lib/Sema/Scope.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Sema/Scope.cpp b/lib/Sema/Scope.cpp index 10f12ce844..c76f61af6c 100644 --- a/lib/Sema/Scope.cpp +++ b/lib/Sema/Scope.cpp @@ -59,13 +59,3 @@ void Scope::Init(Scope *parent, unsigned flags) { Entity = 0; ErrorTrap.reset(); } - -bool Scope::containedInPrototypeScope() const { - const Scope *S = this; - while (S) { - if (S->isFunctionPrototypeScope()) - return true; - S = S->getParent(); - } - return false; -} |