Remove outdated code (#13996)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-12-19 13:19:59 +08:00
1 parent b50dfd1974
commit 617f077766
1 file changed
-5
-5
View File
@@ -23,11 +23,6 @@ function printPropertyKey(path, options, print) {
const parent = path.getParentNode();
const { key } = node;
// flow has `Identifier` key, other parsers use `PrivateIdentifier` (ESTree) or `PrivateName`
if (node.type === "ClassPrivateProperty" && key.type === "Identifier") {
return ["#", print("key")];
}
if (options.quoteProps === "consistent" && !needsQuoteProps.has(parent)) {
const objectHasStringProp = (
parent.properties ||