From 617f077766cecf44ef1d4c46ccceeb69bd7aa605 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Mon, 19 Dec 2022 13:19:59 +0800 Subject: [PATCH] Remove outdated code (#13996) --- src/language-js/print/property.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/language-js/print/property.js b/src/language-js/print/property.js index 2a6b05c05..361bb89a2 100644 --- a/src/language-js/print/property.js +++ b/src/language-js/print/property.js @@ -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 ||