| 127 | } |
| 128 | |
| 129 | void TrafficManager::OnMwmDeregistered(platform::LocalCountryFile const & countryFile) |
| 130 | { |
| 131 | if (!IsEnabled()) |
| 132 | return; |
| 133 | |
| 134 | { |
| 135 | std::lock_guard<std::mutex> lock(m_mutex); |
| 136 | |
| 137 | MwmSet::MwmId mwmId; |
| 138 | for (auto const & cacheEntry : m_mwmCache) |
| 139 | { |
| 140 | if (cacheEntry.first.IsDeregistered(countryFile)) |
| 141 | { |
| 142 | mwmId = cacheEntry.first; |
| 143 | break; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | ClearCache(mwmId); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void TrafficManager::OnDestroySurface() |
| 152 | { |
no test coverage detected