diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-06-02 14:56:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 14:56:21 -0400 |
commit | b7b6e0674f5bd6fed3e9b7ae5f32f95f1784753b (patch) | |
tree | 73e9c46cf37e80c9858760d49de5ff62ccb61e37 /cli/source_maps.rs | |
parent | 9c59a4b18c0aac3699d210c1f05f152651ddca28 (diff) |
Remove unused check-only feature (#6035)
Diffstat (limited to 'cli/source_maps.rs')
-rw-r--r-- | cli/source_maps.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/cli/source_maps.rs b/cli/source_maps.rs index 90780e042..d87147dbe 100644 --- a/cli/source_maps.rs +++ b/cli/source_maps.rs @@ -18,17 +18,6 @@ pub trait SourceMapGetter { /// find a SourceMap. pub type CachedMaps = HashMap<String, Option<SourceMap>>; -// The bundle does not get built for 'cargo check', so we don't embed the -// bundle source map. The built in source map is the source map for the main -// JavaScript bundle which is then used to create the snapshot. Runtime stack -// traces can contain positions within the bundle which we will map to the -// original Deno TypeScript code. -#[cfg(feature = "check-only")] -fn builtin_source_map(_: &str) -> Option<Vec<u8>> { - None -} - -#[cfg(not(feature = "check-only"))] fn builtin_source_map(file_name: &str) -> Option<Vec<u8>> { if file_name.ends_with("CLI_SNAPSHOT.js") { Some(crate::js::CLI_SNAPSHOT_MAP.to_vec()) |