From 9f98e1ef3b006ae134e1dd2717fc3b7748f0359a Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 15 Sep 2021 15:25:46 +0200 Subject: [PATCH] Remove unwanted code --- .../rust/preserves-schema/src/compiler/mod.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/implementations/rust/preserves-schema/src/compiler/mod.rs b/implementations/rust/preserves-schema/src/compiler/mod.rs index 09127e0..807404e 100644 --- a/implementations/rust/preserves-schema/src/compiler/mod.rs +++ b/implementations/rust/preserves-schema/src/compiler/mod.rs @@ -224,17 +224,6 @@ pub fn compile(config: &CompilerConfig) -> io::Result<()> { emit_items(generated.remove(&ModuleContextMode::TargetToplevel).unwrap()); emit_items(generated.remove(&ModuleContextMode::TargetGeneric).unwrap()); - // let mut generic_mod_items: Vec = vec![ - // item(vertical(false, seq![ - // format!("use {}::support as _support;", &config.support_crate), - // "use _support::Deserialize;", - // "use _support::preserves;"])), - // ]; - // generic_mod_items.extend(generated.remove(&ModuleContextMode::TargetGeneric).unwrap()); - // - // lines.push(Formatter::to_string(seq!["mod __ ", vertical(true, block(generic_mod_items))])); - // lines.push("".to_owned()); - { let contents = lines.join("\n"); write_if_changed(&output_path, contents.as_bytes())?;