removing dead store from survey::survey_mid_level_tile

- survey.cpp: deleting declaration of and assigments to variable base_z which is never used apart from a self-assigment
develop
bseiller 2021-01-30 23:37:09 +01:00
parent 028a68ae6f
commit 741e430a06
1 changed files with 0 additions and 4 deletions

@ -915,7 +915,6 @@ void embark_assist::survey::survey_mid_level_tile(embark_assist::defs::geo_data
int16_t elevation; int16_t elevation;
int16_t last_bottom; int16_t last_bottom;
int16_t top_z; int16_t top_z;
int16_t base_z;
int16_t min_z = 0; // Initialized to silence warning about potential usage of uninitialized data. int16_t min_z = 0; // Initialized to silence warning about potential usage of uninitialized data.
int16_t bottom_z; int16_t bottom_z;
df::coord2d adjusted; df::coord2d adjusted;
@ -994,7 +993,6 @@ void embark_assist::survey::survey_mid_level_tile(embark_assist::defs::geo_data
} }
} }
base_z = elevation - 1;
features = details->features[i][k]; features = details->features[i][k];
mid_level_tile.adamantine_level = -1; mid_level_tile.adamantine_level = -1;
mid_level_tile.magma_level = -1; mid_level_tile.magma_level = -1;
@ -1026,8 +1024,6 @@ void embark_assist::survey::survey_mid_level_tile(embark_assist::defs::geo_data
feature->min_z != -30000) { feature->min_z != -30000) {
auto layer = world_data->underground_regions[feature->layer]; auto layer = world_data->underground_regions[feature->layer];
base_z = std::min((int)base_z, (int)feature->min_z);
if (layer->type == df::world_underground_region::MagmaSea) { if (layer->type == df::world_underground_region::MagmaSea) {
min_z = feature->min_z; // The features are individual per region tile min_z = feature->min_z; // The features are individual per region tile
} }