Skip to content

Commit a26264d

Browse files
committed
Removed some unused variables
1 parent d99023e commit a26264d

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6683,7 +6683,6 @@ module ts {
66836683
return;
66846684
}
66856685

6686-
var symbol = getSymbolOfNode(signatureDeclarationNode);
66876686
// TypeScript 1.0 spec (April 2014): 3.7.2.4
66886687
// Every specialized call or construct signature in an object type must be assignable
66896688
// to at least one non-specialized call or construct signature in the same object type
@@ -8812,7 +8811,7 @@ module ts {
88128811
return false;
88138812
}
88148813
var symbol = getSymbolOfNode(node);
8815-
return isImportResolvedToValue(getSymbolOfNode(node));
8814+
return isImportResolvedToValue(symbol);
88168815
}
88178816

88188817
function hasSemanticErrors() {

src/harness/compilerRunner.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,10 @@ class CompilerBaselineRunner extends RunnerBase {
285285
typeLines.push('=== ' + file.unitName + ' ===\r\n');
286286
for (var i = 0; i < codeLines.length; i++) {
287287
var currentCodeLine = codeLines[i];
288-
var lastLine = typeLines[typeLines.length];
289288
typeLines.push(currentCodeLine + '\r\n');
290289
if (typeMap[file.unitName]) {
291290
var typeInfo = typeMap[file.unitName][i];
292291
if (typeInfo) {
293-
var leadingSpaces = '';
294292
typeInfo.forEach(ty => {
295293
typeLines.push('>' + ty + '\r\n');
296294
});

src/services/services.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ module ts {
144144
while (pos < end) {
145145
var token = scanner.scan();
146146
var textPos = scanner.getTextPos();
147-
var node = nodes.push(createNode(token, pos, textPos, NodeFlags.Synthetic, this));
147+
nodes.push(createNode(token, pos, textPos, NodeFlags.Synthetic, this));
148148
pos = textPos;
149149
}
150150
return pos;
@@ -662,8 +662,6 @@ module ts {
662662
}
663663
}
664664

665-
var incrementalParse: IncrementalParse = TypeScript.IncrementalParser.parse;
666-
667665
class SourceFileObject extends NodeObject implements SourceFile {
668666
public filename: string;
669667
public text: string;
@@ -3735,9 +3733,6 @@ module ts {
37353733

37363734
pushKeywordIf(keywords, switchStatement.getFirstToken(), SyntaxKind.SwitchKeyword);
37373735

3738-
// Types of break statements we can grab on to.
3739-
var breakSearchType = BreakContinueSearchType.All;
3740-
37413736
// Go through each clause in the switch statement, collecting the 'case'/'default' keywords.
37423737
forEach(switchStatement.clauses, clause => {
37433738
pushKeywordIf(keywords, clause.getFirstToken(), SyntaxKind.CaseKeyword, SyntaxKind.DefaultKeyword);
@@ -4611,7 +4606,6 @@ module ts {
46114606
var targetSourceFile = program.getSourceFile(filename); // Current selected file to be output
46124607
// If --out flag is not specified, shouldEmitToOwnFile is true. Otherwise shouldEmitToOwnFile is false.
46134608
var shouldEmitToOwnFile = ts.shouldEmitToOwnFile(targetSourceFile, compilerOptions);
4614-
var emitDeclaration = compilerOptions.declaration;
46154609
var emitOutput: EmitOutput = {
46164610
outputFiles: [],
46174611
emitOutputStatus: undefined,

0 commit comments

Comments
 (0)