aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/trackers.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-06-13 13:17:28 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-06-13 13:17:28 +0200
commit2fe671951369b8f049e8acf02e9e9750c96b4dcd (patch)
tree49e9c0cc4bcbf6d76183555ac95bc3d9504c7a05 /src/statistics/trackers.rs
parentfe16699205b6b40aed8cafbe95820835a7052908 (diff)
downloadevtclib-2fe671951369b8f049e8acf02e9e9750c96b4dcd.tar.gz
evtclib-2fe671951369b8f049e8acf02e9e9750c96b4dcd.tar.bz2
evtclib-2fe671951369b8f049e8acf02e9e9750c96b4dcd.zip
clean up a bit
Diffstat (limited to 'src/statistics/trackers.rs')
-rw-r--r--src/statistics/trackers.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/statistics/trackers.rs b/src/statistics/trackers.rs
index ce87f3d..11e51f2 100644
--- a/src/statistics/trackers.rs
+++ b/src/statistics/trackers.rs
@@ -18,26 +18,12 @@
//! trackers on the same log.
use std::collections::HashMap;
use std::error::Error;
-use std::hash::Hash;
use super::super::{Event, EventKind, Log};
use super::boon::BoonQueue;
use super::damage::{DamageLog, DamageType};
use super::gamedata::{self, Mechanic, Trigger};
-// A support macro to introduce a new block.
-//
-// Doesn't really require a macro, but it's nicer to look at
-// with! { foo = bar }
-// rather than
-// { let foo = bar; ... }
-macro_rules! with {
- ($name:ident = $expr:expr => $bl:block) => {{
- let $name = $expr;
- $bl
- }};
-}
-
/// A tracker.
///
/// A tracker should be responsible for tracking a single statistic. Each
@@ -322,9 +308,6 @@ impl Tracker for BoonTracker {
type Error = !;
fn feed(&mut self, event: &Event) -> Result<(), Self::Error> {
- if event.kind.destination_agent_addr() != Some(self.agent_addr) {
- return Ok(());
- }
let delta_t = event.time - self.last_time;
if self.next_update != 0 && delta_t > self.next_update {