diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-11 11:32:53 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-11 15:06:56 -0500 |
commit | 8d3e8b1c642996719fccf594ea3e36d448adf9f8 (patch) | |
tree | 8bf1f2aa14d05c3827f3fe5d8bd64b5529abaf1c /src | |
parent | acd9fa229895cea540f028f47eea2ca795bb7e52 (diff) |
Remove dead code: ASSET_PREFIX
Diffstat (limited to 'src')
-rw-r--r-- | src/deno_dir.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/deno_dir.rs b/src/deno_dir.rs index 2510fb056..9b31df6ea 100644 --- a/src/deno_dir.rs +++ b/src/deno_dir.rs @@ -176,9 +176,6 @@ impl DenoDir { module_name: &str, filename: &str, ) -> DenoResult<CodeFetchOutput> { - if module_name.starts_with(ASSET_PREFIX) { - panic!("Asset resolution should be done in JS, not Rust."); - } let is_module_remote = is_remote(module_name); let use_extension = |ext| { let module_name = format!("{}{}", module_name, ext); @@ -405,8 +402,6 @@ fn source_code_hash(filename: &str, source_code: &str) -> String { out } -const ASSET_PREFIX: &str = "/$asset$/"; - fn is_remote(module_name: &str) -> bool { module_name.starts_with("http://") || module_name.starts_with("https://") } |