From c6baa46aca6e0bed313ae974ecec623fec1ff96a Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 28 Mar 2020 22:38:28 +0100 Subject: [PATCH] Removed `import_input` This should be left to the client crate, `settings::utils::read_file` is already here for that --- src/lib.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d350660..b61b8d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,20 +67,3 @@ pub fn init() -> std::result::Result<(), log::SetLoggerError> { } } } - -/// Import user input from a text file and return them as a String -/// -/// # Arguments -/// -/// * `path` - path to the file containing the user input -/// -/// # Example -/// -/// ```no_run -/// # use lang_evolve_core::import_input; -/// use std::path::Path; -/// let _input = import_input(Path::new("input.txt")).unwrap(); -/// ``` -pub fn import_input(path: &Path) -> Result { - utils::read_file(&path) -}