Skip to content

Commit 5dc017b

Browse files
committed
Merge pull request #502 from DickvdBrink/unused-var-parser
Remove some unused variables
2 parents def02d8 + c9e526f commit 5dc017b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ module ts {
14701470
function getTypeOfFuncClassEnumModule(symbol: Symbol): Type {
14711471
var links = getSymbolLinks(symbol);
14721472
if (!links.type) {
1473-
var type = links.type = createObjectType(TypeFlags.Anonymous, symbol);
1473+
links.type = createObjectType(TypeFlags.Anonymous, symbol);
14741474
}
14751475
return links.type;
14761476
}

src/compiler/parser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,8 +2405,6 @@ module ts {
24052405
function parseBreakOrContinueStatement(kind: SyntaxKind): BreakOrContinueStatement {
24062406
var node = <BreakOrContinueStatement>createNode(kind);
24072407
var errorCountBeforeStatement = file.syntacticErrors.length;
2408-
var keywordStart = scanner.getTokenPos();
2409-
var keywordLength = scanner.getTextPos() - keywordStart;
24102408
parseExpected(kind === SyntaxKind.BreakStatement ? SyntaxKind.BreakKeyword : SyntaxKind.ContinueKeyword);
24112409
if (!canParseSemicolon()) node.label = parseIdentifier();
24122410
parseSemicolon();

0 commit comments

Comments
 (0)