Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 24, 2023
1 parent 6bb9ba4 commit 8b9938f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions packages/swc-magic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
#![feature(box_patterns)]

use swc_core::{
common::{sync::Lrc, FileName, SourceMap},
ecma::{
ast::Program,
visit::{FoldWith, VisitMutWith},
},
ecma::{ast::Program, visit::VisitMutWith},
plugin::{
plugin_transform,
proxies::{PluginCommentsProxy, TransformPluginProgramMetadata},
Expand Down
4 changes: 0 additions & 4 deletions packages/swc-magic/transform/src/import_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ pub(crate) struct ImportMap {
}

impl ImportMap {
pub fn is_module_imported(&mut self, module: &JsWord) -> bool {
self.imported_modules.contains(module)
}

/// Returns true if `e` is an import of `orig_name` from `module`.
pub fn is_import(&self, e: &Expr, module: &str, orig_name: &str) -> bool {
match e {
Expand Down

0 comments on commit 8b9938f

Please sign in to comment.