Skip to content

Commit b1af566

Browse files
committed
Remove unused code in bindWorker
1 parent ec00bb9 commit b1af566

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/compiler/binder.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,22 +2080,6 @@ namespace ts {
20802080
case SyntaxKind.EnumMember:
20812081
return bindPropertyOrMethodOrAccessor(<Declaration>node, SymbolFlags.EnumMember, SymbolFlags.EnumMemberExcludes);
20822082

2083-
case SyntaxKind.SpreadAssignment:
2084-
case SyntaxKind.JsxSpreadAttribute:
2085-
let root = container;
2086-
let hasRest = false;
2087-
while (root.parent) {
2088-
if (root.kind === SyntaxKind.ObjectLiteralExpression &&
2089-
root.parent.kind === SyntaxKind.BinaryExpression &&
2090-
(root.parent as BinaryExpression).operatorToken.kind === SyntaxKind.EqualsToken &&
2091-
(root.parent as BinaryExpression).left === root) {
2092-
hasRest = true;
2093-
break;
2094-
}
2095-
root = root.parent;
2096-
}
2097-
return;
2098-
20992083
case SyntaxKind.CallSignature:
21002084
case SyntaxKind.ConstructSignature:
21012085
case SyntaxKind.IndexSignature:
@@ -3613,4 +3597,4 @@ namespace ts {
36133597
child.parent = parent;
36143598
forEachChild(child, (childsChild) => setParentPointers(child, childsChild));
36153599
}
3616-
}
3600+
}

0 commit comments

Comments
 (0)