Skip to content

Commit

Permalink
Merge pull request #107 from eminence/deprecated
Browse files Browse the repository at this point in the history
Remove deprecated functions
  • Loading branch information
eminence committed Oct 25, 2020
2 parents 248a1a7 + 1c3cf5b commit 04548e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions src/cpuinfo.rs
Expand Up @@ -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> {
CpuInfo::new()
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down
18 changes: 0 additions & 18 deletions src/pressure.rs
Expand Up @@ -133,12 +133,6 @@ fn parse_pressure_record(line: &str) -> ProcResult<PressureRecord> {
})
}

/// Get CPU pressure information
#[deprecated(note = "Please use the CpuPressure::new() method instead")]
pub fn cpu_pressure() -> ProcResult<CpuPressure> {
CpuPressure::new()
}

fn get_pressure(pressure_file: &str) -> ProcResult<(PressureRecord, PressureRecord)> {
use std::fs::File;
use std::io::{BufRead, BufReader};
Expand All @@ -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> {
MemoryPressure::new()
}

/// Get IO pressure information
#[deprecated(note = "Please use the IoPressure::new() method instead")]
pub fn io_pressure() -> ProcResult<IoPressure> {
IoPressure::new()
}

#[cfg(test)]
mod test {
use super::*;
Expand Down

0 comments on commit 04548e1

Please sign in to comment.