Skip to content

Commit 7196018

Browse files
author
Paul van Brenk
committed
Removed unused, confusing cases
1 parent b59714e commit 7196018

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/services/codefixes/unusedIdentifierFixes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ namespace ts.codefix {
9595
case SyntaxKind.NamespaceImport:
9696
return createCodeFix("", token.parent.parent.parent.pos, token.parent.parent.parent.end - token.parent.parent.parent.pos);
9797

98-
case SyntaxKind.EnumDeclaration:
99-
return createCodeFix("", token.parent.pos, token.parent.end - token.parent.pos);
100-
10198
default:
10299
if (isDeclarationName(token)) {
103100
return createCodeFix("", token.parent.pos, token.parent.end - token.parent.pos);
@@ -106,11 +103,9 @@ namespace ts.codefix {
106103
}
107104
break;
108105

109-
case SyntaxKind.PrivateKeyword:
110106
case SyntaxKind.PropertyDeclaration:
111107
return createCodeFix("", token.parent.pos, token.parent.end - token.parent.pos);
112108

113-
case SyntaxKind.AsteriskToken:
114109
case SyntaxKind.NamespaceImport:
115110
return createCodeFix("", token.parent.pos, token.parent.end - token.parent.pos);
116111
}

0 commit comments

Comments
 (0)