aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-01-07 21:25:27 +0100
committer hop311 <hop3114@gmail.com>2024-01-07 21:30:44 +0100
commit34d9e9318387f2b2a0ae924a512f352540b84e07 (patch)
treea7cf192c714aa5553a244d7b16c04f833b626cb6 /src/openvic-simulation/map/Province.cpp
parent004abc9951d0a20d09027cde1d9b5b02bcc99fa0 (diff)
More impassable adjacencies + WVPM mod fixes
Diffstat (limited to 'src/openvic-simulation/map/Province.cpp')
-rw-r--r--src/openvic-simulation/map/Province.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openvic-simulation/map/Province.cpp b/src/openvic-simulation/map/Province.cpp
index a9bf329..1c3c76f 100644
--- a/src/openvic-simulation/map/Province.cpp
+++ b/src/openvic-simulation/map/Province.cpp
@@ -141,17 +141,6 @@ std::string_view Province::adjacency_t::get_type_name(type_t type) {
}
}
-Province::adjacency_t* Province::get_adjacency_to(Province const* province) {
- const std::vector<adjacency_t>::iterator it = std::find_if(adjacencies.begin(), adjacencies.end(),
- [province](adjacency_t const& adj) -> bool { return adj.get_to() == province; }
- );
- if (it != adjacencies.end()) {
- return &*it;
- } else {
- return nullptr;
- }
-}
-
Province::adjacency_t const* Province::get_adjacency_to(Province const* province) const {
const std::vector<adjacency_t>::const_iterator it = std::find_if(adjacencies.begin(), adjacencies.end(),
[province](adjacency_t const& adj) -> bool { return adj.get_to() == province; }