Remove dead code
This commit is contained in:
parent
4dfda64b39
commit
b1377363df
@ -190,21 +190,6 @@ pub fn to_roots(&self) -> Vec<PackageRoot> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn proc_macro_dylib_paths(&self) -> Vec<AbsPathBuf> {
|
||||
match self {
|
||||
ProjectWorkspace::Json { project, sysroot: _ } => project
|
||||
.crates()
|
||||
.filter_map(|(_, krate)| krate.proc_macro_dylib_path.as_ref())
|
||||
.cloned()
|
||||
.collect(),
|
||||
ProjectWorkspace::Cargo { cargo, sysroot: _sysroot, rustc: _rustc_crates } => cargo
|
||||
.packages()
|
||||
.filter_map(|pkg| cargo[pkg].proc_macro_dylib_path.as_ref())
|
||||
.cloned()
|
||||
.collect(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn n_packages(&self) -> usize {
|
||||
match self {
|
||||
ProjectWorkspace::Json { project, .. } => project.n_crates(),
|
||||
|
Loading…
Reference in New Issue
Block a user