summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r--cli/graph_util.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index 1f49c22a3..f73fd5559 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -441,20 +441,6 @@ impl GraphData {
None
}
- // TODO(bartlomieju): after saving translated source
- // it's never removed, potentially leading to excessive
- // memory consumption
- pub fn add_cjs_esm_translation(
- &mut self,
- specifier: &ModuleSpecifier,
- source: String,
- ) {
- let prev = self
- .cjs_esm_translations
- .insert(specifier.to_owned(), source);
- assert!(prev.is_none());
- }
-
pub fn get_cjs_esm_translation<'a>(
&'a self,
specifier: &ModuleSpecifier,