From d9a01282200d3796b5b74bdd89633e1a75c22fd8 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Fri, 4 Oct 2024 14:41:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20clean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/replace_global_defines.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/oxc_transformer/src/plugins/replace_global_defines.rs b/crates/oxc_transformer/src/plugins/replace_global_defines.rs index e2102f9380c789..74c28656bd08d7 100644 --- a/crates/oxc_transformer/src/plugins/replace_global_defines.rs +++ b/crates/oxc_transformer/src/plugins/replace_global_defines.rs @@ -279,22 +279,6 @@ impl<'a> ReplaceGlobalDefines<'a> { } } - // pub fn is_import_meta_with_postfix_wildcard( - // &self, - // member: &StaticMemberExpression<'a>, - // ) -> Option<&CompactStr> { - // let (replacement, wildcard) = self.config.0.import_meta.as_ref()?; - // if !wildcard { - // return None; - // } - // let Expression::MetaProperty(ref meta_property) = member.object else { - // return None; - // }; - // if meta_property.meta.name == "import" && meta_property.property.name == "meta" { - // return Some(replacement); - // } - // None - // } pub fn is_meta_property_define( meta_define: &MetaPropertyDefine, member: &StaticMemberExpression<'a>,