aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-09-24 13:47:05 +0200
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-09-24 13:47:19 +0200
commit0eefbc4d41558fd23dcaa5874c619fa357be17e7 (patch)
tree1ee327b82cf4a17ac1a1debcf361061e6cc71830 /src/openvic-simulation/map
parente7384036993ab8b47d8c126cca31e9bff12ad440 (diff)
Clean up
Diffstat (limited to 'src/openvic-simulation/map')
-rw-r--r--src/openvic-simulation/map/ProvinceInstance.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/openvic-simulation/map/ProvinceInstance.cpp b/src/openvic-simulation/map/ProvinceInstance.cpp
index 4282e7b..e2128ed 100644
--- a/src/openvic-simulation/map/ProvinceInstance.cpp
+++ b/src/openvic-simulation/map/ProvinceInstance.cpp
@@ -202,9 +202,7 @@ void ProvinceInstance::_update_pops(DefineManager const& define_manager) {
void ProvinceInstance::convert_rgo_worker_pops_to_equivalent(ProductionType const& production_type) {
std::vector<Job> const& jobs = production_type.get_jobs();
- fixed_point_t total_worker_count_in_province = 0; //not counting equivalents
for(Pop& pop : pops) {
- bool is_worker_pop_type = false;
for(Job const& job : jobs) {
PopType const* const job_pop_type = job.get_pop_type();
PopType const* old_pop_type = pop.get_type();
@@ -215,10 +213,6 @@ void ProvinceInstance::convert_rgo_worker_pops_to_equivalent(ProductionType cons
}
}
}
-
- if(is_worker_pop_type) {
- total_worker_count_in_province += pop.get_size();
- }
}
}