Remove dead `report_handle_event_success` method
Presumably this is marked as dead code, despite being `pub`, because
this is a binary crate, and not a library.
-use failure::Error;
-use grapl_observe::metric_reporter::{common_strs, MetricReporter, TagPair};
-use log::*;
+use grapl_observe::metric_reporter::MetricReporter;
use std::io::Stdout;
#[derive(Clone)]
@@ -15,20 +13,3 @@ impl OSQuerySubgraphGeneratorMetrics {
}
}
}
-
-impl OSQuerySubgraphGeneratorMetrics {
- pub fn report_handle_event_success(&mut self, failed: &Option<Error>) {
- let reported_status = if let Some(_) = failed {
- common_strs::FAIL
- } else {
- common_strs::SUCCESS
- };
- self.metric_reporter
- .gauge(
- "osquery-generator-completion",
- 1.0,
- &[TagPair(common_strs::STATUS, reported_status)],
- )
- .unwrap_or_else(|e| warn!("Metric failed: {}", e))
- }
-}
