Unused code: remove CCRMax() and used macro

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-05-20 11:03:14 +02:00
parent a88c950738
commit 1d7fc93017
2 changed files with 0 additions and 15 deletions

View file

@ -206,23 +206,9 @@ unsigned int DivePlotDataModel::dcShown() const
return ret; \
}
#define MAX_SENSOR_GAS_FUNC(GASFUNC) \
double DivePlotDataModel::GASFUNC() /* CCR: This function finds the largest measured po2 value */ \
{ /* by scanning the readings from the three individual o2 sensors. */ \
double ret = -1; /* This is used for scaling the Y-axis for partial pressures */ \
for (int s = 0; s < 3; s++) { /* when displaying the graphs for individual o2 sensors */ \
for (int i = 0, count = rowCount(); i < count; i++) { /* POTENTIAL PROBLEM: the '3' (no_sensors) is hard-coded here */\
if (pInfo.entry[i].o2sensor[s].mbar > ret) \
ret = pInfo.entry[i].o2sensor[s].mbar; \
} \
} \
return (ret / 1000.0); /* mbar -> bar conversion */ \
}
MAX_PPGAS_FUNC(he, pheMax);
MAX_PPGAS_FUNC(n2, pn2Max);
MAX_PPGAS_FUNC(o2, po2Max);
MAX_SENSOR_GAS_FUNC(CCRMax);
void DivePlotDataModel::emitDataChanged()
{

View file

@ -82,7 +82,6 @@ public:
double pheMax();
double pn2Max();
double po2Max();
double CCRMax();
void emitDataChanged();
#ifndef SUBSURFACE_MOBILE
void calculateDecompression();