From: Greg Burri <greg.burri@gmail.com> Date: Mon, 5 Dec 2022 11:09:28 +0000 (+0100) Subject: Remove useless function X-Git-Url: https://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=23b0e5ce1e05ac454434390104973f811e06ab89;p=advent_of_code_2022.git Remove useless function --- diff --git a/src/common.rs b/src/common.rs index aa8372d..e69de29 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1,10 +0,0 @@ -use std::{fs, path::Path, str::FromStr}; - -pub fn read_list_of_numbers<P, T>(file: P, sep: &str) -> Vec<T> -where - P: AsRef<Path>, - T: FromStr, - T::Err: std::fmt::Debug -{ - fs::read_to_string(file).unwrap().split(sep).map(|line| line.trim().parse::<T>().unwrap()).collect() -} \ No newline at end of file