Skip to content

Commit 617f077

Browse files
authored
Remove outdated code (#13996)
1 parent b50dfd1 commit 617f077

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/language-js/print/property.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ function printPropertyKey(path, options, print) {
2323
const parent = path.getParentNode();
2424
const { key } = node;
2525

26-
// flow has `Identifier` key, other parsers use `PrivateIdentifier` (ESTree) or `PrivateName`
27-
if (node.type === "ClassPrivateProperty" && key.type === "Identifier") {
28-
return ["#", print("key")];
29-
}
30-
3126
if (options.quoteProps === "consistent" && !needsQuoteProps.has(parent)) {
3227
const objectHasStringProp = (
3328
parent.properties ||

0 commit comments

Comments
 (0)