diff options
-rw-r--r-- | include/clang/Parse/Parser.h | 4 | ||||
-rw-r--r-- | lib/Parse/Parser.cpp | 15 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index f90e6a85bb..c4b1bdcefa 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -233,10 +233,6 @@ public: // Parsing methods. - /// ParseTranslationUnit - All in one method that initializes parses, and - /// shuts down the parser. - void ParseTranslationUnit(); - /// Initialize - Warm up the parser. /// void Initialize(); diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index ae5394be28..cc0d1d2fd1 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -561,21 +561,6 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) { return false; } -/// ParseTranslationUnit: -/// translation-unit: [C99 6.9] -/// external-declaration -/// translation-unit external-declaration -void Parser::ParseTranslationUnit() { - Initialize(); - - DeclGroupPtrTy Res; - while (!ParseTopLevelDecl(Res)) - /*parse them all*/; - - ExitScope(); - assert(getCurScope() == 0 && "Scope imbalance!"); -} - /// ParseExternalDeclaration: /// /// external-declaration: [C99 6.9], declaration: [C++ dcl.dcl] |