Clean up doc for refresh_components
@@ -14,7 +14,6 @@ use std::collections::HashMap;
use std::mem::{size_of, zeroed};
use std::time::SystemTime;
-use ComponentExt;
use LoadAvg;
use Networks;
use Pid;
@@ -170,23 +169,6 @@ impl SystemExt for System {
}
}
- /// Refresh components' temperature.
- ///
- /// Please note that on Windows, you need to have Administrator priviledges to get this
- /// information.
- ///
- /// ```no_run
- /// use sysinfo::{System, SystemExt};
- ///
- /// let mut s = System::new();
- /// s.refresh_components();
- /// ```
- fn refresh_components(&mut self) {
- for component in &mut self.components {
- component.refresh();
- }
- }
-
fn refresh_components_list(&mut self) {
self.components = component::get_components();
}
