aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map
diff options
context:
space:
mode:
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();
- }
}
}