summaryrefslogtreecommitdiffstats
path: root/src/load_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/load_file.rs')
-rw-r--r--src/load_file.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/load_file.rs b/src/load_file.rs
deleted file mode 100644
index 0fd1541..0000000
--- a/src/load_file.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-use std::fs::File;
-use std::io::Read;
-
-pub fn load_file_vec(path: &String) -> std::io::Result<Vec<u8>>
-{
- let mut file = File::open(path)?;
- let mut data = Vec::new();
-
- file.read_to_end(&mut data)?;
-
- Ok(data)
-}