rustbook: remove dead test functions

This commit is contained in:
Ralf Jung 2017-09-04 13:04:53 +02:00
parent a36d93d383
commit adbb820352

View 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();