Remove unused imports

This commit is contained in:
Oli Scherer 2022-09-20 07:35:35 +00:00
parent f45b570e08
commit 47cb378526
2 changed files with 2 additions and 13 deletions

View File

@ -11,9 +11,9 @@
use crate::checksum::Checksums;
use crate::manifest::{Component, Manifest, Package, Rename, Target};
use crate::versions::{PkgType, Versions};
use std::collections::{BTreeMap, HashMap, HashSet};
use std::collections::{BTreeMap, HashSet};
use std::env;
use std::fs::{self, File};
use std::fs;
use std::path::{Path, PathBuf};
static HOSTS: &[&str] = &[

View File

@ -157,17 +157,6 @@ fn load_version_from_tarball(&mut self, package: &PkgType) -> Result<VersionInfo
Ok(VersionInfo { version, git_commit, present: true })
}
pub(crate) fn disable_version(&mut self, package: &PkgType) {
match self.versions.get_mut(package) {
Some(version) => {
*version = VersionInfo::default();
}
None => {
self.versions.insert(package.clone(), VersionInfo::default());
}
}
}
pub(crate) fn archive_name(
&self,
package: &PkgType,