Remove now dead code
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user