Skip to content

Commit a11f206

Browse files
committedJul 22, 2020
Remove unused CompileMode::all_modes
1 parent f84f3f8 commit a11f206

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed
 

‎src/cargo/core/compiler/build_config.rs

-17
Original file line numberDiff line numberDiff line change
@@ -214,21 +214,4 @@ impl CompileMode {
214214
pub fn is_run_custom_build(self) -> bool {
215215
self == CompileMode::RunCustomBuild
216216
}
217-
218-
/// List of all modes (currently used by `cargo clean -p` for computing
219-
/// all possible outputs).
220-
pub fn all_modes() -> &'static [CompileMode] {
221-
static ALL: [CompileMode; 9] = [
222-
CompileMode::Test,
223-
CompileMode::Build,
224-
CompileMode::Check { test: true },
225-
CompileMode::Check { test: false },
226-
CompileMode::Bench,
227-
CompileMode::Doc { deps: true },
228-
CompileMode::Doc { deps: false },
229-
CompileMode::Doctest,
230-
CompileMode::RunCustomBuild,
231-
];
232-
&ALL
233-
}
234217
}

0 commit comments

Comments
 (0)
Please sign in to comment.