Skip to content

Commit 50f14e9

Browse files
Rollup merge of rust-lang#44313 - RalfJung:book, r=nikomatsakis
rustbook: remove dead test functions There is no "test" subcommand added to the `clap::App`, so this is all dead code. Cc @steveklabnik -- your [commit](RalfJung@a076961) introducing this stated the intention of having both commands, but it seems nobody has missed the `test` command since February.
2 parents 923c351 + adbb820 commit 50f14e9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/tools/rustbook/src/main.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ fn main() {
4141
// Check which subcomamnd the user ran...
4242
let res = match matches.subcommand() {
4343
("build", Some(sub_matches)) => build(sub_matches),
44-
("test", Some(sub_matches)) => test(sub_matches),
4544
(_, _) => unreachable!(),
4645
};
4746

@@ -65,14 +64,6 @@ fn build(args: &ArgMatches) -> Result<(), Box<Error>> {
6564
Ok(())
6665
}
6766

68-
fn test(args: &ArgMatches) -> Result<(), Box<Error>> {
69-
let mut book = build_mdbook_struct(args);
70-
71-
try!(book.test());
72-
73-
Ok(())
74-
}
75-
7667
fn build_mdbook_struct(args: &ArgMatches) -> mdbook::MDBook {
7768
let book_dir = get_book_dir(args);
7869
let mut book = MDBook::new(&book_dir).read_config();

0 commit comments

Comments
 (0)