From 15df4835e6898638546874ca30763faa9a05edcc Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Wed, 11 Dec 2024 09:40:01 -0800 Subject: [PATCH] #130: render: remove unused code --- src/vt-tv/api/info.h | 38 -------------------------------------- src/vt-tv/render/render.cc | 11 ----------- 2 files changed, 49 deletions(-) diff --git a/src/vt-tv/api/info.h b/src/vt-tv/api/info.h index 0fac5d85f..fcae0d78e 100644 --- a/src/vt-tv/api/info.h +++ b/src/vt-tv/api/info.h @@ -368,44 +368,6 @@ struct Info { return rank_qois; } - // /** - // * \brief Get QOI of all ranks at given phase - // * - // * \return a map of QOI per rank - // */ - // template - // std::unordered_map - // getAllRankQOIAtPhase(PhaseType phase, std::string const& rank_qoi) const { - // std::unordered_map rank_qois; - - // if (hasRankUserDefined(rank_qoi)) { - // auto const& test_value = getFirstRankUserDefined(rank_qoi); - // for (uint64_t rank_id = 0; rank_id < ranks_.size(); rank_id++) { - // auto const& rank = ranks_.at(rank_id); - // if (std::holds_alternative(test_value)) { - // rank_qois.emplace( - // phase, static_cast( - // std::get(getRankUserDefined(rank, phase, rank_qoi)) - // ) - // ); - // } else if (std::holds_alternative(test_value)) { - // rank_qois.emplace( - // phase, static_cast( - // std::get(getRankUserDefined(rank, phase, rank_qoi)) - // ) - // ); - // } - // } - // } else { - // auto qoi_getter = getRankQOIGetter(rank_qoi); - // for (auto const& [rank_id, rank] : this->ranks_) { - // rank_qois.emplace(rank_id, qoi_getter(rank, phase, no_lb_iter)); - // } - // } - - // return rank_qois; - // } - /* -------------------------------- Object Getters -------------------------------- */ /** diff --git a/src/vt-tv/render/render.cc b/src/vt-tv/render/render.cc index a1b7dc66b..eff1957c1 100644 --- a/src/vt-tv/render/render.cc +++ b/src/vt-tv/render/render.cc @@ -288,17 +288,6 @@ std::pair Render::computeRankQOIRange_() { return std::make_pair(rq_min, rq_max); } -// double Render::computeRankQOIAverage_(PhaseType phase, std::string qoi) { -// // Initialize rank QOI range attributes -// double rq_sum = 0.0; -// auto const& rank_loads_at_phase = -// this->info_.getAllRankQOIAtPhase(phase, qoi); -// for (auto const& [rank, rank_load] : rank_loads_at_phase) { -// rq_sum += rank_load; -// } -// return rq_sum / rank_loads_at_phase.size(); -// } - std::map> Render::createObjectMapping_(PhaseType phase, LBIterationType lb_iter) { std::map>