diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-08-23 13:57:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 13:57:09 +0200 |
commit | c1558beffbb5f7941059be2e4e91ba2d1454adaa (patch) | |
tree | 4ce7f64d796d7ae726ba762c4c4ffbb6ed34f401 /cli/swc_util.rs | |
parent | fe59a423a6237b66ae048f2c130cbb8d968ad647 (diff) |
upgrade: swc, dprint, deno_lint, deno_doc (#7162)
Diffstat (limited to 'cli/swc_util.rs')
-rw-r--r-- | cli/swc_util.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/swc_util.rs b/cli/swc_util.rs index 13d165113..be1e6cad7 100644 --- a/cli/swc_util.rs +++ b/cli/swc_util.rs @@ -57,10 +57,6 @@ impl Into<Location> for swc_common::Loc { } } -struct DummyHandler; - -impl swc_ecmascript::codegen::Handlers for DummyHandler {} - fn get_default_es_config() -> EsConfig { let mut config = EsConfig::default(); config.num_sep = true; @@ -244,7 +240,6 @@ impl AstParser { let mut src_map_buf = vec![]; let mut buf = vec![]; { - let handlers = Box::new(DummyHandler); let writer = Box::new(JsWriter::new( self.source_map.clone(), "\n", @@ -257,7 +252,6 @@ impl AstParser { comments: Some(&self.comments), cm: self.source_map.clone(), wr: writer, - handlers, }; program.emit_with(&mut emitter)?; } |