Skip to content

Commit 4a96491

Browse files
committed
Remove silly function
1 parent 5f6ac45 commit 4a96491

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -935,10 +935,6 @@ namespace ts {
935935
return false;
936936
}
937937

938-
function parseOptionalWithoutAdvancing(t: SyntaxKind): boolean {
939-
return token === t;
940-
}
941-
942938
function parseOptional(t: SyntaxKind): boolean {
943939
if (token === t) {
944940
nextToken();
@@ -3388,7 +3384,7 @@ namespace ts {
33883384
let attributes = parseList(ParsingContext.JsxAttributes, parseJsxAttribute);
33893385
let node: JsxOpeningLikeElement;
33903386

3391-
if (parseOptionalWithoutAdvancing(SyntaxKind.GreaterThanToken)) {
3387+
if (token === SyntaxKind.GreaterThanToken) {
33923388
// Closing tag, so scan the immediately-following text with the JSX scanning instead
33933389
// of regular scanning to avoid treating illegal characters (e.g. '#') as immediate
33943390
// scanning errors

0 commit comments

Comments
 (0)