From d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 5 May 2023 16:35:09 -0400 Subject: Refactored away singletons (Except TrackerConfig, for now at least) --- src/tracker_state.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/tracker_state.h') diff --git a/src/tracker_state.h b/src/tracker_state.h index 879e6f2..d8256e2 100644 --- a/src/tracker_state.h +++ b/src/tracker_state.h @@ -1,19 +1,8 @@ #ifndef TRACKER_STATE_H_8639BC90 #define TRACKER_STATE_H_8639BC90 -#include -#include +void RecalculateReachability(); -class TrackerState { - public: - void CalculateState(); - - bool IsLocationReachable(int area_id, int section_id); - - private: - std::map, bool> reachability_; -}; - -TrackerState& GetTrackerState(); +bool IsLocationReachable(int area_id, int section_id); #endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ -- cgit 1.4.1