From adbb820352cdda9490b72261a809f04c5559a654 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 4 Sep 2017 13:04:53 +0200 Subject: [PATCH] rustbook: remove dead test functions --- src/tools/rustbook/src/main.rs | 9 --------- 1 file changed, 9 deletions(-) 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();