diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-03 23:00:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 23:00:50 -0500 |
commit | 1e75e5ecc72fd6caf1ee3d2c98ea1662e141f55b (patch) | |
tree | 8337170002adde6dfb1a5ec2447a942e8140fa65 /cli/graph_util.rs | |
parent | a635c9700c0b99c3ad128c21727fdcfb23bad72f (diff) |
refactor: remove old cjs_esm_translations in graph_util (#17643)
This isn't used.
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 3c5545a50..16ee0145f 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -66,7 +66,6 @@ pub struct GraphData { /// error messages. referrer_map: HashMap<ModuleSpecifier, Box<Range>>, graph_imports: Vec<GraphImport>, - cjs_esm_translations: HashMap<ModuleSpecifier, String>, } impl GraphData { @@ -311,7 +310,6 @@ impl GraphData { npm_packages: self.npm_packages.clone(), referrer_map, graph_imports: self.graph_imports.to_vec(), - cjs_esm_translations: Default::default(), }) } @@ -465,13 +463,6 @@ impl GraphData { } None } - - pub fn get_cjs_esm_translation<'a>( - &'a self, - specifier: &ModuleSpecifier, - ) -> Option<&'a String> { - self.cjs_esm_translations.get(specifier) - } } impl From<&ModuleGraph> for GraphData { |