From ceae63495420f78e1c4d927bd97e8164dfc921e6 Mon Sep 17 00:00:00 2001 From: expwnent Date: Sat, 28 Jun 2014 02:41:00 -0400 Subject: [PATCH] Squashed EventManager commented out thing I don't need anymore. --- library/modules/EventManager.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/library/modules/EventManager.cpp b/library/modules/EventManager.cpp index fa25122c2..8c2670e17 100644 --- a/library/modules/EventManager.cpp +++ b/library/modules/EventManager.cpp @@ -738,21 +738,6 @@ static void manageReportEvent(color_ostream& out) { } } -/* -static void onAttackEventHelper(df::unit* attacker, df::unit* defender, df::unit_wound* wound) { - multimap copy(handlers[EventType::UNIT_ATTACK].begin(), handlers[EventType::UNIT_ATTACK].end()); - UnitAttackData data; - data.defender = unit->id; - data.attacker = wound->unit_id; - data.wound = wound->id; - - for ( auto a = copy.begin(); a != copy.end(); a++ ) { - EventHandler handle = (*a).second; - handle.eventHandler(Core::getInstance().getConsole(), (void*)&data); - } -} -*/ - static df::unit_wound* getWound(df::unit* attacker, df::unit* defender) { for ( size_t a = 0; a < defender->body.wounds.size(); a++ ) { df::unit_wound* wound = defender->body.wounds[a];