From 1c3cf5b407befce0230195ea10f699812a38a2b1 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 24 Oct 2020 11:19:58 -0400 Subject: [PATCH] Remove deprecated functions --- src/cpuinfo.rs | 6 ------ src/pressure.rs | 18 ------------------ 2 files changed, 24 deletions(-) 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::*;