From 995fac12fd9b452ddcdfe35c24d0a033f8dd771c Mon Sep 17 00:00:00 2001 From: holygits Date: Thu, 14 Feb 2019 11:10:27 +1300 Subject: [PATCH] Remove stray file --- src/util.rs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/util.rs diff --git a/src/util.rs b/src/util.rs deleted file mode 100644 index a5217a37e..000000000 --- a/src/util.rs +++ /dev/null @@ -1,13 +0,0 @@ -use std::fs::File; -use std::io::{Read, Result}; -use std::path::Path; - -/// Read a file at `path` into a String -pub fn read_file(path: &Path) -> Result { - info!("Loading file {:?}", path); - let mut f = File::open(&path)?; - let mut buffer = String::new(); - f.read_to_string(&mut buffer)?; - - Ok(buffer) -}