From f1a774951a93aa71cf240ade4eec8f471cace9af Mon Sep 17 00:00:00 2001 From: theMZet Date: Fri, 29 May 2026 22:54:40 +0200 Subject: [PATCH] remove!: World::save function --- src/world.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/world.rs b/src/world.rs index 0fd0427..70644ae 100644 --- a/src/world.rs +++ b/src/world.rs @@ -90,24 +90,4 @@ impl World { Ok(world) } - - pub fn save(&self, world_path: Option, do_print: bool) -> Result<()> { - let text = toml::to_string_pretty(self)?; - - if let Some(world_path) = world_path { - let mut file = OpenOptions::new() - .write(true) - .create(true) - .truncate(true) - .open(world_path)?; - - file.write_all(text.as_bytes())?; - } - - if do_print { - println!("{}", text); - } - - Ok(()) - } }