From 4a96491d5b0233a0c2a32a285b620bc8b224f29b Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Fri, 7 Aug 2015 16:06:49 -0700 Subject: [PATCH] Remove silly function --- src/compiler/parser.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 385d9dda226..a83b6d91828 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -935,10 +935,6 @@ namespace ts { return false; } - function parseOptionalWithoutAdvancing(t: SyntaxKind): boolean { - return token === t; - } - function parseOptional(t: SyntaxKind): boolean { if (token === t) { nextToken(); @@ -3388,7 +3384,7 @@ namespace ts { let attributes = parseList(ParsingContext.JsxAttributes, parseJsxAttribute); let node: JsxOpeningLikeElement; - if (parseOptionalWithoutAdvancing(SyntaxKind.GreaterThanToken)) { + if (token === SyntaxKind.GreaterThanToken) { // Closing tag, so scan the immediately-following text with the JSX scanning instead // of regular scanning to avoid treating illegal characters (e.g. '#') as immediate // scanning errors