From c9e526ffe91e3fa829da0d03cef97ec5ec65869f Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Thu, 21 Aug 2014 21:24:33 +0200 Subject: [PATCH] Remove some unused variables --- src/compiler/checker.ts | 2 +- src/compiler/parser.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 538d2d91af..9f88df3aa8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -1470,7 +1470,7 @@ module ts { function getTypeOfFuncClassEnumModule(symbol: Symbol): Type { var links = getSymbolLinks(symbol); if (!links.type) { - var type = links.type = createObjectType(TypeFlags.Anonymous, symbol); + links.type = createObjectType(TypeFlags.Anonymous, symbol); } return links.type; } diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 52ca0327e7..c03938c601 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2405,8 +2405,6 @@ module ts { function parseBreakOrContinueStatement(kind: SyntaxKind): BreakOrContinueStatement { var node = createNode(kind); var errorCountBeforeStatement = file.syntacticErrors.length; - var keywordStart = scanner.getTokenPos(); - var keywordLength = scanner.getTextPos() - keywordStart; parseExpected(kind === SyntaxKind.BreakStatement ? SyntaxKind.BreakKeyword : SyntaxKind.ContinueKeyword); if (!canParseSemicolon()) node.label = parseIdentifier(); parseSemicolon();