Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated functions #107

Merged
merged 1 commit into from
Oct 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/cpuinfo.rs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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