diff options
author | Aleksey Kladov <[email protected]> | 2020-11-13 16:53:48 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-13 16:53:48 +0000 |
commit | b1377363dffa042de5d0b3bd753753a97e488c70 (patch) | |
tree | fbfd11e4dbe85cc58c7c195b41a0cb82df43383f /crates/project_model/src | |
parent | 4dfda64b39cc47ac75280461f46e121958990fca (diff) |
Remove dead code
Diffstat (limited to 'crates/project_model/src')
-rw-r--r-- | crates/project_model/src/workspace.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs index 8a1a60e0e..9ebb0a811 100644 --- a/crates/project_model/src/workspace.rs +++ b/crates/project_model/src/workspace.rs | |||
@@ -190,21 +190,6 @@ impl ProjectWorkspace { | |||
190 | } | 190 | } |
191 | } | 191 | } |
192 | 192 | ||
193 | pub fn proc_macro_dylib_paths(&self) -> Vec<AbsPathBuf> { | ||
194 | match self { | ||
195 | ProjectWorkspace::Json { project, sysroot: _ } => project | ||
196 | .crates() | ||
197 | .filter_map(|(_, krate)| krate.proc_macro_dylib_path.as_ref()) | ||
198 | .cloned() | ||
199 | .collect(), | ||
200 | ProjectWorkspace::Cargo { cargo, sysroot: _sysroot, rustc: _rustc_crates } => cargo | ||
201 | .packages() | ||
202 | .filter_map(|pkg| cargo[pkg].proc_macro_dylib_path.as_ref()) | ||
203 | .cloned() | ||
204 | .collect(), | ||
205 | } | ||
206 | } | ||
207 | |||
208 | pub fn n_packages(&self) -> usize { | 193 | pub fn n_packages(&self) -> usize { |
209 | match self { | 194 | match self { |
210 | ProjectWorkspace::Json { project, .. } => project.n_crates(), | 195 | ProjectWorkspace::Json { project, .. } => project.n_crates(), |