From 1cc661b9163491565a6b3d06c22b341e3f158455 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sun, 11 Aug 2019 10:13:58 +1200 Subject: [PATCH] Remove comments --- src/plugins/sys.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/plugins/sys.rs b/src/plugins/sys.rs index d50b2351..8b5dcc68 100644 --- a/src/plugins/sys.rs +++ b/src/plugins/sys.rs @@ -154,29 +154,6 @@ async fn temp(tag: Tag) -> Option { } else { None } - - // if components_list.len() > 0 { - // let mut v: Vec> = vec![]; - // for component in components_list { - // let mut component_idx = TaggedDictBuilder::new(tag); - // component_idx.insert("name", Primitive::String(component.get_label().to_string())); - // component_idx.insert( - // "temp", - // Primitive::Float(OF64::from(component.get_temperature() as f64)), - // ); - // component_idx.insert( - // "max", - // Primitive::Float(OF64::from(component.get_max() as f64)), - // ); - // if let Some(critical) = component.get_critical() { - // component_idx.insert("critical", Primitive::Float(OF64::from(critical as f64))); - // } - // v.push(component_idx.into()); - // } - // Some(Value::List(v)) - // } else { - // None - // } } async fn net(tag: Tag) -> Value {