Skip to content

Commit

Permalink
refactor: 删除未使用的file_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Oct 23, 2024
1 parent c05b050 commit ab0866c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cpu_temp_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ use std::{fs, path::PathBuf};

use anyhow::Result;

use crate::file_handler::FileHandler;

pub struct CpuTempWatcher {
nodes: Vec<PathBuf>,
}

impl CpuTempWatcher {
pub fn new() -> Result<Self> {
let file_handler = FileHandler::new();
let mut nodes = Vec::new();
for device in fs::read_dir("/sys/devices/virtual/thermal")? {
let device = device?;
Expand Down

0 comments on commit ab0866c

Please sign in to comment.