From d5aaee732eed2a8cf20d78fb75ee05753e146774 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:30:46 +0000 Subject: [PATCH] refactor(transformer/class-properties): remove defunct comments (#7527) These comments are out of date / repeated elsewhere. --- crates/oxc_transformer/src/es2022/class_properties/private.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/oxc_transformer/src/es2022/class_properties/private.rs b/crates/oxc_transformer/src/es2022/class_properties/private.rs index bc938e64c..1c173eaad 100644 --- a/crates/oxc_transformer/src/es2022/class_properties/private.rs +++ b/crates/oxc_transformer/src/es2022/class_properties/private.rs @@ -192,9 +192,6 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> { // Get replacement for callee let replacement = if prop.is_static { - // TODO: If `object` is reference to class name, and class is declaration, use shortcut `_prop._.call(Class)`. - // TODO(improve-on-babel): No reason not to apply these shortcuts for class expressions too. - // `object.#prop(arg)` -> `_assertClassBrand(Class, object, _prop)._.call(object, arg)` // or shortcut `_prop._.call(object, arg)` let class_name_binding = class_name_binding.as_ref().unwrap();