about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2017-09-04 13:04:53 +0200
committerRalf Jung <post@ralfj.de>2017-09-04 13:04:53 +0200
commitadbb820352cdda9490b72261a809f04c5559a654 (patch)
treedf8261be8c99fbef662b767ed6480eb41fafc48a
parenta36d93d38390ae92342fe7199c13e513b2c527fb (diff)
rustbook: remove dead test functions
-rw-r--r--src/tools/rustbook/src/main.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs
index 33326de9c1c..41e88aa245f 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<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();