diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs index 33326de9c1cc3..41e88aa245f42 100644 --- a/src/tools/rustbook/src/main.rs +++ b/src/tools/rustbook/src/main.rs @@ -41,7 +41,6 @@ fn main() { // Check which subcomamnd the user ran... let res = match matches.subcommand() { ("build", Some(sub_matches)) => build(sub_matches), - ("test", Some(sub_matches)) => test(sub_matches), (_, _) => unreachable!(), }; @@ -65,14 +64,6 @@ fn build(args: &ArgMatches) -> Result<(), Box> { Ok(()) } -fn test(args: &ArgMatches) -> Result<(), Box> { - let mut book = build_mdbook_struct(args); - - try!(book.test()); - - Ok(()) -} - fn build_mdbook_struct(args: &ArgMatches) -> mdbook::MDBook { let book_dir = get_book_dir(args); let mut book = MDBook::new(&book_dir).read_config();