diff options
Diffstat (limited to 'cli/args/lockfile.rs')
-rw-r--r-- | cli/args/lockfile.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/args/lockfile.rs b/cli/args/lockfile.rs index dd976862e..559367078 100644 --- a/cli/args/lockfile.rs +++ b/cli/args/lockfile.rs @@ -1,12 +1,8 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use std::path::PathBuf; -use std::sync::Arc; use deno_core::error::AnyError; -use deno_core::parking_lot::Mutex; -use deno_npm::registry::NpmRegistryApi; -use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot; use crate::args::ConfigFile; use crate::Flags; @@ -49,17 +45,3 @@ pub fn discover( let lockfile = Lockfile::new(filename, flags.lock_write)?; Ok(Some(lockfile)) } - -pub async fn snapshot_from_lockfile( - lockfile: Arc<Mutex<Lockfile>>, - api: &dyn NpmRegistryApi, -) -> Result<ValidSerializedNpmResolutionSnapshot, AnyError> { - let incomplete_snapshot = { - let lock = lockfile.lock(); - deno_npm::resolution::incomplete_snapshot_from_lockfile(&lock)? - }; - let snapshot = - deno_npm::resolution::snapshot_from_lockfile(incomplete_snapshot, api) - .await?; - Ok(snapshot) -} |