mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove some unused variables
This commit is contained in:
@@ -84,7 +84,6 @@ module TypeScript {
|
||||
private cacheSyntaxTreeInfo(): void {
|
||||
// If we're not keeping around the syntax tree, store the diagnostics and line
|
||||
// map so they don't have to be recomputed.
|
||||
var sourceUnit = this.sourceUnit();
|
||||
var firstToken = firstSyntaxTreeToken(this);
|
||||
var leadingTrivia = firstToken.leadingTrivia(this.text);
|
||||
|
||||
|
||||
@@ -150,7 +150,6 @@ module TypeScript.Syntax {
|
||||
|
||||
// When we run into a newline for the first time, create the string builder and copy
|
||||
// all the values up to this newline into it.
|
||||
var isCarriageReturnLineFeed = false;
|
||||
switch (ch) {
|
||||
case CharacterCodes.carriageReturn:
|
||||
if (i < triviaText.length - 1 && triviaText.charCodeAt(i + 1) === CharacterCodes.lineFeed) {
|
||||
|
||||
Reference in New Issue
Block a user