Remove now dead code

This commit is contained in:
Aleksey Kladov
2021-03-08 21:39:09 +03:00
parent 095b9110b5
commit e89c0e3961
9 changed files with 76 additions and 90 deletions

View File

@@ -2,8 +2,10 @@
use std::{fmt, path::PathBuf};
use xshell::write_file;
use crate::{
codegen::{self, extract_comment_blocks_with_empty_lines, Location, Mode, PREAMBLE},
codegen::{extract_comment_blocks_with_empty_lines, Location, PREAMBLE},
project_root, rust_files, Result,
};
@@ -12,7 +14,7 @@ pub(crate) fn generate_feature_docs() -> Result<()> {
let contents = features.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n");
let contents = format!("//{}\n{}\n", PREAMBLE, contents.trim());
let dst = project_root().join("docs/user/generated_features.adoc");
codegen::update(&dst, &contents, Mode::Overwrite)?;
write_file(&dst, &contents)?;
Ok(())
}