Minor: comment out some code to prevent compiler warnings (about some unused

variables).
This commit is contained in:
Gerhard Hoffmann 2024-09-02 17:15:33 +02:00
parent 5cab0de9fb
commit cce3db301b

View File

@ -122,7 +122,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
uint8_t payment_option,
char const *startDatetimePassed, // given in local time
double cost,
PermitType permitType,
PermitType /*permitType*/,
bool nextDay,
bool prepaid)
{
@ -405,7 +405,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
int new_price = 0;
int durationInSecs = 0;
uint32_t duration_previous = 0;
bool found = false;
// bool found = false;
for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) {
int const pra_price = itr->second.pra_price;
@ -434,7 +434,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg,
duration_previous = durationUnit;
//qCritical() << "(" << __func__ << ":" << __LINE__ << ") ZZZZZZ duration_previous" << duration_previous;
} else {
found = true;
//found = true;
//qCritical() << "(" << __func__ << ":" << __LINE__ << ") WWWWWW duration_previous" << duration_previous;
QString s = inputDate.toString(Qt::ISODate);
QDateTime d(QDateTime::fromString(s, Qt::ISODate));
@ -2581,7 +2581,7 @@ QList<int> &Calculator::GetTimeSteps(Configuration *cfg, int paymentOptionIndex,
// qCritical() << "(" << __func__ << ":" << __LINE__ << ") runtime in minutes (1):" << runtimeInMinutes;
int const pop_truncate_last_interpolation_step = cfg->getPaymentOptions(paymentOptionIndex).pop_truncate_last_interpolation_step;
// int const pop_truncate_last_interpolation_step = cfg->getPaymentOptions(paymentOptionIndex).pop_truncate_last_interpolation_step;
// TODO: auslagern
for (auto[itr, rangeEnd] = cfg->PaymentRate.equal_range(pop_id); itr != rangeEnd; ++itr) {
@ -2606,7 +2606,7 @@ QList<int> &Calculator::GetTimeSteps(Configuration *cfg, int paymentOptionIndex,
auto search = cfg->Duration.find(durationId);
if (search != cfg->Duration.end()) {
ATBDuration duration = search->second;
ATBDuration &previous = search->second;
// ATBDuration &previous = search->second;
if (duration.pun_interpolation_id == -1) {
@ -2636,7 +2636,7 @@ QList<int> &Calculator::GetTimeSteps(Configuration *cfg, int paymentOptionIndex,
// qCritical() << "(" << __func__ << ":" << __LINE__ << ") interpolation dynamic end:" << interpolationEnd.toString(Qt::ISODate);
// qCritical() << "(" << __func__ << ":" << __LINE__ << ") interpolation dynamic end time:" << end_time;
int pop_min_time = cfg->getPaymentOptions(paymentOptionIndex).pop_min_time;
// int pop_min_time = cfg->getPaymentOptions(paymentOptionIndex).pop_min_time;
runtimeInMinutes += duration.pun_duration;
nextTimeStep = start.addSecs(runtimeInMinutes * 60);
@ -2713,7 +2713,7 @@ QList<int> &Calculator::GetTimeSteps(Configuration *cfg, int paymentOptionIndex,
//qCritical() << "(" << __func__ << ":" << __LINE__ << ") runtime in minutes:" << runtimeInMinutes;
QDateTime s = start.addSecs(runtimeInMinutes * 60);
int const minutes = s.time().secsTo(carryOverStart) / 60;
// int const minutes = s.time().secsTo(carryOverStart) / 60;
#if 0
if (minutes > 0) {