From 741e430a06df48e1d3d27efa7db2435139918991 Mon Sep 17 00:00:00 2001 From: bseiller Date: Sat, 30 Jan 2021 23:37:09 +0100 Subject: [PATCH] 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 --- plugins/embark-assistant/survey.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/embark-assistant/survey.cpp b/plugins/embark-assistant/survey.cpp index 63e834977..2610772f6 100644 --- a/plugins/embark-assistant/survey.cpp +++ b/plugins/embark-assistant/survey.cpp @@ -915,7 +915,6 @@ void embark_assist::survey::survey_mid_level_tile(embark_assist::defs::geo_data int16_t elevation; int16_t last_bottom; 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 bottom_z; 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]; mid_level_tile.adamantine_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) { 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) { min_z = feature->min_z; // The features are individual per region tile }