From b2bb714ad8287a33a1ee399999e340471b0bb4b4 Mon Sep 17 00:00:00 2001 From: cc Date: Thu, 28 Aug 2025 02:02:37 -0700 Subject: Unifying label formats --- src/binfile.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/binfile.rs') diff --git a/src/binfile.rs b/src/binfile.rs index 5b0b783..b61945a 100644 --- a/src/binfile.rs +++ b/src/binfile.rs @@ -1,18 +1,5 @@ use std::io::{Error,ErrorKind}; -pub fn dump_u32_vec(file_name: &str, data: Vec) -> Result<(), Error> { - use std::fs::File; - use std::io::Write; - if let Ok(mut file) = File::create(file_name) { - for value in data { - file.write_all(&value.to_le_bytes())?; - } - } else { - return Err(Error::new(ErrorKind::Other, "Error creating file")); - } - Ok(()) -} - pub fn dump_u16_vec(file_name: &str, data: Vec) -> Result<(), Error> { use std::fs::File; use std::io::Write; -- cgit v1.2.1