]> git.lizzy.rs Git - rust.git/commitdiff
rustbook: remove dead test functions
authorRalf Jung <post@ralfj.de>
Mon, 4 Sep 2017 11:04:53 +0000 (13:04 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 4 Sep 2017 11:04:53 +0000 (13:04 +0200)
src/tools/rustbook/src/main.rs

index 33326de9c1cc3f630ac7c8672d76e1b18a816e2f..41e88aa245f42e55efc94f0a3581bb30671be8cf 100644 (file)
@@ -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<Error>> {
     Ok(())
 }
 
-fn test(args: &ArgMatches) -> Result<(), Box<Error>> {
-    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();