diff --git a/src/cpuinfo.rs b/src/cpuinfo.rs index 5dca6171..3c2e7471 100644 --- a/src/cpuinfo.rs +++ b/src/cpuinfo.rs @@ -146,12 +146,6 @@ impl CpuInfo { } } -/// Get CPU info, from /proc/cpuinfo -#[deprecated(note = "Please use the CpuInfo::new() method instead")] -pub fn cpuinfo() -> ProcResult { - CpuInfo::new() -} - #[cfg(test)] mod tests { use super::*; diff --git a/src/pressure.rs b/src/pressure.rs index 0f94306c..fe6a2944 100644 --- a/src/pressure.rs +++ b/src/pressure.rs @@ -133,12 +133,6 @@ fn parse_pressure_record(line: &str) -> ProcResult { }) } -/// Get CPU pressure information -#[deprecated(note = "Please use the CpuPressure::new() method instead")] -pub fn cpu_pressure() -> ProcResult { - CpuPressure::new() -} - fn get_pressure(pressure_file: &str) -> ProcResult<(PressureRecord, PressureRecord)> { use std::fs::File; use std::io::{BufRead, BufReader}; @@ -154,18 +148,6 @@ fn get_pressure(pressure_file: &str) -> ProcResult<(PressureRecord, PressureReco Ok((parse_pressure_record(&some)?, parse_pressure_record(&full)?)) } -/// Get memory pressure information -#[deprecated(note = "Please use the MemoryPressure::new() method instead")] -pub fn memory_pressure() -> ProcResult { - MemoryPressure::new() -} - -/// Get IO pressure information -#[deprecated(note = "Please use the IoPressure::new() method instead")] -pub fn io_pressure() -> ProcResult { - IoPressure::new() -} - #[cfg(test)] mod test { use super::*;