Skip to content

Commit e0ae35b

Browse files
committed
chore: cleanup unused functions
1 parent eede2af commit e0ae35b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/package/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,6 @@ fn create_backup_path(path: &Path) -> PathBuf {
588588
PathBuf::from(backup_path)
589589
}
590590

591-
/// Compile a template file at the given path using Tera templating engine with the provided context. and return the rendered content as a String.
592-
pub fn compile_template(path: &Path, context: &Table) -> anyhow::Result<String> {
593-
let template_content = std::fs::read_to_string(path)?;
594-
compile_string(&template_content, context)
595-
}
596-
597591
pub fn compile_string(template_str: &str, context: &Table) -> anyhow::Result<String> {
598592
let ctx = tera::Context::from_serialize(context)?;
599593
Ok(tera::Tera::one_off(template_str, &ctx, false)?)

0 commit comments

Comments
 (0)